fix: correct broken imports in inquiry-created-to-lead.listener.spec.ts

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 <noreply@anthropic.com>
This commit is contained in:
Ho Ngoc Hai
2026-04-21 11:58:03 +07:00
parent 0df087b372
commit 7b6e99edef

View File

@@ -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;