Skip to content

Commit

Permalink
test: findDNSLinkHostname without match
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Apr 5, 2020
1 parent 4a81bf1 commit 5bce2a2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/functional/lib/dnslink.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/<fqdn> on path gateway', function () {
const fqdn = 'dnslink-site.com'
const url = `https://path-gateway.com/ipns/${fqdn}/some/path?ds=sdads#dfsdf`
Expand Down

0 comments on commit 5bce2a2

Please sign in to comment.