Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit d09c419

Browse files
committed
chore: fallback to web-std blob
1 parent ded6c36 commit d09c419

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/ipfs-core-utils/test/files/normalise-input.spec.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { expect } = require('aegir/utils/chai')
66
const blobToIt = require('blob-to-it')
77
const uint8ArrayFromString = require('uint8arrays/from-string')
88
const all = require('it-all')
9-
const { File } = require('@web-std/file')
9+
const { File, Blob: WsBlob } = require('@web-std/file')
1010
const { Blob, ReadableStream } = globalThis
1111
const { isBrowser, isWebWorker, isElectronRenderer } = require('ipfs-utils/src/env')
1212

@@ -39,8 +39,8 @@ async function verifyNormalisation (input) {
3939
try {
4040
expect(content).to.be.an.instanceOf(Blob)
4141
} catch (err) {
42-
// Fallback to instance of File
43-
expect(content).to.be.an.instanceOf(File)
42+
// Fallback to instance of WsBlob
43+
expect(content).to.be.an.instanceOf(WsBlob)
4444
}
4545
content = blobToIt(content)
4646
}
@@ -75,7 +75,7 @@ function browserReadableStreamOf (thing) {
7575
})
7676
}
7777

78-
describe('normalise-input', function () {
78+
describe.only('normalise-input', function () {
7979
function testInputType (content, name, isBytes) {
8080
it(name, async function () {
8181
await testContent(content())

0 commit comments

Comments
 (0)