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

Commit

Permalink
chore: fallback to web-std blob
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Jul 20, 2021
1 parent ded6c36 commit d09c419
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/ipfs-core-utils/test/files/normalise-input.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { expect } = require('aegir/utils/chai')
const blobToIt = require('blob-to-it')
const uint8ArrayFromString = require('uint8arrays/from-string')
const all = require('it-all')
const { File } = require('@web-std/file')
const { File, Blob: WsBlob } = require('@web-std/file')
const { Blob, ReadableStream } = globalThis
const { isBrowser, isWebWorker, isElectronRenderer } = require('ipfs-utils/src/env')

Expand Down Expand Up @@ -39,8 +39,8 @@ async function verifyNormalisation (input) {
try {
expect(content).to.be.an.instanceOf(Blob)
} catch (err) {
// Fallback to instance of File
expect(content).to.be.an.instanceOf(File)
// Fallback to instance of WsBlob
expect(content).to.be.an.instanceOf(WsBlob)
}
content = blobToIt(content)
}
Expand Down Expand Up @@ -75,7 +75,7 @@ function browserReadableStreamOf (thing) {
})
}

describe('normalise-input', function () {
describe.only('normalise-input', function () {
function testInputType (content, name, isBytes) {
it(name, async function () {
await testContent(content())
Expand Down

0 comments on commit d09c419

Please sign in to comment.