fix(api): enhance postCreate unit tests

This commit is contained in:
yassinedorbozgithub 2025-06-17 11:49:44 +01:00
parent 48c73f7604
commit 672342ca31
2 changed files with 6 additions and 6 deletions

View File

@ -222,10 +222,10 @@ describe('NlpEntityRepository', () => {
name: 'test2', name: 'test2',
builtin: true, builtin: true,
}); });
const intentNlpEntity = await nlpEntityRepository.findOne(result.id); const nlpEntity = await nlpEntityRepository.findOne(result.id);
expect(intentNlpEntity?.foreign_id).toBeUndefined(); expect(nlpEntity?.foreign_id).toBeUndefined();
expect(intentNlpEntity).toEqualPayload(result); expect(nlpEntity).toEqualPayload(result);
}); });
}); });
}); });

View File

@ -244,10 +244,10 @@ describe('NlpValueRepository', () => {
value: 'nlpValueTest2', value: 'nlpValueTest2',
builtin: true, builtin: true,
}); });
const intentNlpEntity = await nlpValueRepository.findOne(result.id); const nlpValue = await nlpValueRepository.findOne(result.id);
expect(intentNlpEntity?.foreign_id).toBeUndefined(); expect(nlpValue?.foreign_id).toBeUndefined();
expect(intentNlpEntity).toEqualPayload(result); expect(nlpValue).toEqualPayload(result);
}); });
}); });
}); });