From 5bce2a22f9e8879634b874cc636af2f1d1c4d694 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Sun, 5 Apr 2020 19:04:05 +0200 Subject: [PATCH] test: findDNSLinkHostname without match --- test/functional/lib/dnslink.test.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/functional/lib/dnslink.test.js b/test/functional/lib/dnslink.test.js index f61fe7626..b62f5d768 100644 --- a/test/functional/lib/dnslink.test.js +++ b/test/functional/lib/dnslink.test.js @@ -217,13 +217,11 @@ describe('dnslinkResolver (dnslinkPolicy=enabled)', function () { spoofDnsTxtRecord(fqdn, dnslinkResolver, dnslinkValue) expect(dnslinkResolver.findDNSLinkHostname(url)).to.equal(fqdn) }) - /* TODO - it('should return null if no DNSLink record', function () { - const url = new URL(`https://no-dnslink.example.com/some/path?ds=sdads#dfsdf`) + it('should return nothing if no DNSLink record', function () { + const url = new URL('https://no-dnslink.example.com/some/path?ds=sdads#dfsdf') const dnslinkResolver = createDnslinkResolver(getState) expect(dnslinkResolver.findDNSLinkHostname(url)).to.equal(undefined) }) - */ it('should match /ipns/ on path gateway', function () { const fqdn = 'dnslink-site.com' const url = `https://path-gateway.com/ipns/${fqdn}/some/path?ds=sdads#dfsdf`