Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fauno committed Nov 5, 2024
1 parent 82de84e commit 36450d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dns/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ test('basic dns resolve', async t => {
const response = await dnsClient.query(`_dnslink.${site.domain}`, 'TXT')
t.true(hasAnswer(response, 'ipns'), 'returned dns query has an ipns entry')
t.true(hasAnswer(response, 'hyper'), 'returned dns query has a hyper entry')
t.is(response.answers.filter(ans => ans.type !== DNS.Packet.TYPE.TXT).length, 0, 'should not include any non-TXT entries')
t.is(response.answers.filter(ans => ![DNS.Packet.Type.NS, DNS.Packet.TYPE.TXT].includes(ans.type)).length, 0, 'should not include any non-TXT and non-NS entries')
})

test('dns should not resolve unknown domains', async t => {
Expand Down

0 comments on commit 36450d6

Please sign in to comment.