Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

test(contact): drop duplicated resolveContactPhone cases

Yudhi Armyndharis081e713a1c60
diff --git a/src/modules/contact/contact.service.spec.ts b/src/modules/contact/contact.service.spec.ts
index 61a565fee..3152829c0 100644
--- a/src/modules/contact/contact.service.spec.ts
+++ b/src/modules/contact/contact.service.spec.ts
@@ -327,18 +327,4 @@ describe('ContactService', () => {
await expect(svc.resolveContactPhone('s1', '123@lid')).resolves.toBeNull();
});
});
-
- describe('resolveContactPhone null-on-failure boundary', () => {
- it('returns null (200 contract) when the engine lookup throws', async () => {
- const svc = makeService({
- resolveContactPhone: jest.fn().mockRejectedValue(new Error('Protocol error: Target closed')),
- });
- await expect(svc.resolveContactPhone('s1', '123@lid')).resolves.toBeNull();
- });
-
- it('returns the engine answer verbatim on success', async () => {
- const svc = makeService({ resolveContactPhone: jest.fn().mockResolvedValue('628123') });
- await expect(svc.resolveContactPhone('s1', '123@lid')).resolves.toBe('628123');
- });
- });
});