diff --git a/api/src/nlp/repositories/nlp-entity.repository.spec.ts b/api/src/nlp/repositories/nlp-entity.repository.spec.ts index e48ccf69..a737ce49 100644 --- a/api/src/nlp/repositories/nlp-entity.repository.spec.ts +++ b/api/src/nlp/repositories/nlp-entity.repository.spec.ts @@ -222,10 +222,10 @@ describe('NlpEntityRepository', () => { name: 'test2', builtin: true, }); - const intentNlpEntity = await nlpEntityRepository.findOne(result.id); + const nlpEntity = await nlpEntityRepository.findOne(result.id); - expect(intentNlpEntity?.foreign_id).toBeUndefined(); - expect(intentNlpEntity).toEqualPayload(result); + expect(nlpEntity?.foreign_id).toBeUndefined(); + expect(nlpEntity).toEqualPayload(result); }); }); diff --git a/api/src/nlp/repositories/nlp-value.repository.spec.ts b/api/src/nlp/repositories/nlp-value.repository.spec.ts index 6256dea0..7d19a4fc 100644 --- a/api/src/nlp/repositories/nlp-value.repository.spec.ts +++ b/api/src/nlp/repositories/nlp-value.repository.spec.ts @@ -244,10 +244,10 @@ describe('NlpValueRepository', () => { value: 'nlpValueTest2', builtin: true, }); - const intentNlpEntity = await nlpValueRepository.findOne(result.id); + const nlpValue = await nlpValueRepository.findOne(result.id); - expect(intentNlpEntity?.foreign_id).toBeUndefined(); - expect(intentNlpEntity).toEqualPayload(result); + expect(nlpValue?.foreign_id).toBeUndefined(); + expect(nlpValue).toEqualPayload(result); }); });