From 7b61a14d2c47542acaf8f275303e809886d31486 Mon Sep 17 00:00:00 2001 From: Kfir Dayan Date: Sun, 21 Jan 2024 11:56:13 +0200 Subject: [PATCH] add DNS service test --- src/dns/dns.service.spec.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/dns/dns.service.spec.ts b/src/dns/dns.service.spec.ts index 9126e92..a65a1f0 100644 --- a/src/dns/dns.service.spec.ts +++ b/src/dns/dns.service.spec.ts @@ -19,10 +19,6 @@ describe('DnsService', () => { dnsLookupMock = (dns.lookup as unknown) as jest.Mock; }); - it('should be defined', () => { - expect(service).toBeDefined(); - }); - it('should return true for a valid URL', async () => { dnsLookupMock.mockImplementation((hostname, callback) => callback(null, '1.1.1.1')); expect(await service.isValidUrl('http://example.com')).toBe(true);