From 7b6e99edef68f2eb062f9ac50c41f12a183fac4a Mon Sep 17 00:00:00 2001 From: Ho Ngoc Hai Date: Tue, 21 Apr 2026 11:58:03 +0700 Subject: [PATCH] fix: correct broken imports in inquiry-created-to-lead.listener.spec.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The spec file had two wrong relative imports: - InquiryCreatedToLeadListener: `../` → `../event-handlers/` - CreateLeadCommand: `../../commands/` → `../commands/` Both were off by one directory level since the test lives in `application/__tests__/` but referenced paths as if it were in `application/` directly. All 6 tests now pass. Co-Authored-By: Claude Opus 4 --- .../__tests__/inquiry-created-to-lead.listener.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/modules/leads/application/__tests__/inquiry-created-to-lead.listener.spec.ts b/apps/api/src/modules/leads/application/__tests__/inquiry-created-to-lead.listener.spec.ts index 30a9aaa..676c183 100644 --- a/apps/api/src/modules/leads/application/__tests__/inquiry-created-to-lead.listener.spec.ts +++ b/apps/api/src/modules/leads/application/__tests__/inquiry-created-to-lead.listener.spec.ts @@ -1,6 +1,6 @@ import { InquiryCreatedEvent } from '@modules/inquiries/domain/events/inquiry-created.event'; -import { CreateLeadCommand } from '../../commands/create-lead/create-lead.command'; -import { InquiryCreatedToLeadListener } from '../inquiry-created-to-lead.listener'; +import { CreateLeadCommand } from '../commands/create-lead/create-lead.command'; +import { InquiryCreatedToLeadListener } from '../event-handlers/inquiry-created-to-lead.listener'; describe('InquiryCreatedToLeadListener', () => { let listener: InquiryCreatedToLeadListener;