Skip to content

Commit 7f312cb

Browse files
committed
fix test
1 parent e7705d5 commit 7f312cb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

apps/sim/lib/messaging/email/validation.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ vi.mock('@sim/logger', () => ({
1010
}),
1111
}))
1212

13+
vi.mock('dns', () => ({
14+
resolveMx: (
15+
_domain: string,
16+
callback: (err: Error | null, addresses: { exchange: string; priority: number }[]) => void
17+
) => {
18+
callback(null, [{ exchange: 'mail.example.com', priority: 10 }])
19+
},
20+
}))
21+
1322
describe('Email Validation', () => {
1423
describe('validateEmail', () => {
1524
it.concurrent('should validate a correct email', async () => {

0 commit comments

Comments
 (0)