Skip to content

Commit 5bce2a2

Browse files
committed
test: findDNSLinkHostname without match
1 parent 4a81bf1 commit 5bce2a2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/functional/lib/dnslink.test.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,11 @@ describe('dnslinkResolver (dnslinkPolicy=enabled)', function () {
217217
spoofDnsTxtRecord(fqdn, dnslinkResolver, dnslinkValue)
218218
expect(dnslinkResolver.findDNSLinkHostname(url)).to.equal(fqdn)
219219
})
220-
/* TODO
221-
it('should return null if no DNSLink record', function () {
222-
const url = new URL(`https://no-dnslink.example.com/some/path?ds=sdads#dfsdf`)
220+
it('should return nothing if no DNSLink record', function () {
221+
const url = new URL('https://no-dnslink.example.com/some/path?ds=sdads#dfsdf')
223222
const dnslinkResolver = createDnslinkResolver(getState)
224223
expect(dnslinkResolver.findDNSLinkHostname(url)).to.equal(undefined)
225224
})
226-
*/
227225
it('should match /ipns/<fqdn> on path gateway', function () {
228226
const fqdn = 'dnslink-site.com'
229227
const url = `https://path-gateway.com/ipns/${fqdn}/some/path?ds=sdads#dfsdf`

0 commit comments

Comments
 (0)