Skip to content

Commit 76485a4

Browse files
authored
chore: unskip IPNS test (#6)
This module supports retrieving raw IPNS records so the test for this can be unskipped.
1 parent 77d5e9e commit 76485a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/verified-fetch/test/accept-header.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ describe('accept header', () => {
268268
expect(resp.headers.get('content-type')).to.equal('application/octet-stream')
269269
})
270270

271-
it.skip('should support fetching IPNS records', async () => {
271+
it('should support fetching IPNS records', async () => {
272272
const peerId = await createEd25519PeerId()
273273
const obj = {
274274
hello: 'world'
@@ -288,7 +288,7 @@ describe('accept header', () => {
288288
expect(resp.headers.get('content-type')).to.equal('application/vnd.ipfs.ipns-record')
289289
const buf = await resp.arrayBuffer()
290290

291-
expect(buf).to.equalBytes(marshal(record))
291+
expect(new Uint8Array(buf)).to.equalBytes(marshal(record))
292292
})
293293

294294
shouldNotAcceptCborWith({

0 commit comments

Comments
 (0)