@@ -6,7 +6,7 @@ import { unixfs, UnixFS } from '../src/index.js'
66import { MemoryBlockstore } from 'blockstore-core'
77import type { CID } from 'multiformats/cid'
88import * as dagPb from '@ipld/dag-pb'
9- import { importContent , importBytes } from 'ipfs-unixfs-importer'
9+ import { importDirectory , importBytes , importFile } from 'ipfs-unixfs-importer'
1010import { createShardedDirectory } from './fixtures/create-sharded-directory.js'
1111
1212const smallFile = Uint8Array . from ( new Array ( 13 ) . fill ( 0 ) . map ( ( ) => Math . random ( ) * 100 ) )
@@ -24,7 +24,7 @@ describe('stat', function () {
2424
2525 fs = unixfs ( { blockstore } )
2626
27- const imported = await importContent ( { path : 'empty' } , blockstore )
27+ const imported = await importDirectory ( { path : 'empty' } , blockstore )
2828 emptyDirCid = imported . cid
2929 } )
3030
@@ -100,7 +100,7 @@ describe('stat', function () {
100100
101101 it ( 'should stat file with mode' , async ( ) => {
102102 const mode = 0o644
103- const { cid } = await importContent ( {
103+ const { cid } = await importFile ( {
104104 content : smallFile ,
105105 mode
106106 } , blockstore )
@@ -115,7 +115,7 @@ describe('stat', function () {
115115 secs : 5n ,
116116 nsecs : 0
117117 }
118- const { cid } = await importContent ( {
118+ const { cid } = await importFile ( {
119119 content : smallFile ,
120120 mtime
121121 } , blockstore )
0 commit comments