mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
Merge branch '1132-issue---api-make-sure-hookentityprepostcreate-is-used-across-the-board' into 1134-issue---api-make-sure-hookentityprepostupdate-is-used-across-the-board
This commit is contained in:
commit
e30f077238
@ -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