From e69abb64ba4ab54af9c2e5853194dfc7cdebc808 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Tue, 17 Jun 2025 11:08:29 +0100 Subject: [PATCH] fix(api): enhance NlpValue postCreate unit tests --- api/src/nlp/repositories/nlp-value.repository.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/nlp/repositories/nlp-value.repository.spec.ts b/api/src/nlp/repositories/nlp-value.repository.spec.ts index 41ae2b1c..48689727 100644 --- a/api/src/nlp/repositories/nlp-value.repository.spec.ts +++ b/api/src/nlp/repositories/nlp-value.repository.spec.ts @@ -231,8 +231,8 @@ describe('NlpValueRepository', () => { it('should create and attached a foreign_id to the create nlp value with builtin true', async () => { nlpValueRepository.eventEmitter.once( 'hook:nlpValue:postCreate', - async (...args) => { - await nlpService.handleValuePostCreate(args[0]); + async (...[created]) => { + await nlpService.handleValuePostCreate(created); }, );