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 5f798ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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

0 comments on commit 5f798ef

Please sign in to comment.