mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(api): enhance postCreate unit tests
This commit is contained in:
parent
48c73f7604
commit
672342ca31
@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user