@@ -284,7 +284,7 @@ describe('exchange files', () => {
284
284
} )
285
285
} ) )
286
286
287
- if ( isWindows ) { return }
287
+ if ( isWindows ( ) ) { return }
288
288
// TODO fix dir tests on Windows
289
289
290
290
describe ( 'get directory' , ( ) => depth . forEach ( ( d ) => dirs . forEach ( ( num ) => {
@@ -297,10 +297,10 @@ describe('exchange files', () => {
297
297
depth : d ,
298
298
number : num
299
299
} ) . then ( ( ) => {
300
- return goDaemon . api . util . addFromFs ( dir , { recursive : true } )
300
+ return goDaemon . api . addFromFs ( dir , { recursive : true } )
301
301
} ) . then ( ( res ) => {
302
302
const hash = res [ res . length - 1 ] . hash
303
- return jsDaemon . api . files . get ( hash )
303
+ return jsDaemon . api . get ( hash )
304
304
} ) . then ( ( res ) => {
305
305
expect ( res ) . to . exist ( )
306
306
return rmDir ( dir )
@@ -316,10 +316,10 @@ describe('exchange files', () => {
316
316
depth : d ,
317
317
number : num
318
318
} ) . then ( ( ) => {
319
- return jsDaemon . api . util . addFromFs ( dir , { recursive : true } )
319
+ return jsDaemon . api . addFromFs ( dir , { recursive : true } )
320
320
} ) . then ( ( res ) => {
321
321
const hash = res [ res . length - 1 ] . hash
322
- return goDaemon . api . files . get ( hash )
322
+ return goDaemon . api . get ( hash )
323
323
} ) . then ( ( res ) => {
324
324
expect ( res ) . to . exist ( )
325
325
return rmDir ( dir )
@@ -335,10 +335,10 @@ describe('exchange files', () => {
335
335
depth : d ,
336
336
number : num
337
337
} ) . then ( ( ) => {
338
- return jsDaemon2 . api . util . addFromFs ( dir , { recursive : true } )
338
+ return jsDaemon2 . api . addFromFs ( dir , { recursive : true } )
339
339
} ) . then ( ( res ) => {
340
340
const hash = res [ res . length - 1 ] . hash
341
- return jsDaemon . api . files . get ( hash )
341
+ return jsDaemon . api . get ( hash )
342
342
} ) . then ( ( res ) => {
343
343
expect ( res ) . to . exist ( )
344
344
return rmDir ( dir )
@@ -354,10 +354,10 @@ describe('exchange files', () => {
354
354
depth : d ,
355
355
number : num
356
356
} ) . then ( ( ) => {
357
- return goDaemon2 . api . util . addFromFs ( dir , { recursive : true } )
357
+ return goDaemon2 . api . addFromFs ( dir , { recursive : true } )
358
358
} ) . then ( ( res ) => {
359
359
const hash = res [ res . length - 1 ] . hash
360
- return goDaemon . api . files . get ( hash )
360
+ return goDaemon . api . get ( hash )
361
361
} ) . then ( ( res ) => {
362
362
expect ( res ) . to . exist ( )
363
363
return rmDir ( dir )
0 commit comments