mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(api): enhance NlpValue postCreate unit tests
This commit is contained in:
parent
9bb985c37f
commit
e69abb64ba
@ -231,8 +231,8 @@ describe('NlpValueRepository', () => {
|
|||||||
it('should create and attached a foreign_id to the create nlp value with builtin true', async () => {
|
it('should create and attached a foreign_id to the create nlp value with builtin true', async () => {
|
||||||
nlpValueRepository.eventEmitter.once(
|
nlpValueRepository.eventEmitter.once(
|
||||||
'hook:nlpValue:postCreate',
|
'hook:nlpValue:postCreate',
|
||||||
async (...args) => {
|
async (...[created]) => {
|
||||||
await nlpService.handleValuePostCreate(args[0]);
|
await nlpService.handleValuePostCreate(created);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user