Skip to content

Commit e174d74

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

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/functional/lib/dnslink.test.js

+1-3
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 () {
220+
it('should return nothing if no DNSLink record', function () {
222221
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)