This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 5959 "uint8arrays" : " ^2.1.6"
6060 },
6161 "devDependencies" : {
62+ "@web-std/blob" : " ^2.1.1" ,
6263 "@web-std/file" : " ^1.1.0" ,
6364 "aegir" : " ^34.0.2" ,
6465 "rimraf" : " ^3.0.2"
Original file line number Diff line number Diff line change @@ -6,8 +6,9 @@ const { expect } = require('aegir/utils/chai')
66const blobToIt = require ( 'blob-to-it' )
77const uint8ArrayFromString = require ( 'uint8arrays/from-string' )
88const all = require ( 'it-all' )
9+ const { Blob } = require ( '@web-std/blob' )
910const { File } = require ( '@web-std/file' )
10- const { Blob , ReadableStream } = globalThis
11+ const { ReadableStream } = globalThis
1112const { isBrowser, isWebWorker, isElectronRenderer } = require ( 'ipfs-utils/src/env' )
1213
1314let normalise = require ( '../../src/files/normalise-input' )
@@ -36,12 +37,7 @@ async function verifyNormalisation (input) {
3637 let content = input [ 0 ] . content
3738
3839 if ( isBrowser || isWebWorker || isElectronRenderer ) {
39- try {
40- expect ( content ) . to . be . an . instanceOf ( Blob )
41- } catch ( err ) {
42- // Fallback to instance of File
43- expect ( content ) . to . be . an . instanceOf ( File )
44- }
40+ expect ( content ) . to . be . an . instanceOf ( Blob )
4541 content = blobToIt ( content )
4642 }
4743
You can’t perform that action at this time.
0 commit comments