@@ -35,7 +35,7 @@ module.exports = (createCommon, options) => {
35
35
it ( 'should copy file, expect error' , ( done ) => {
36
36
const testDir = `/test-${ hat ( ) } `
37
37
38
- ipfs . files . cp ( [ `${ testDir } /c` , `${ testDir } /b` ] , ( err ) => {
38
+ ipfs . files . cp ( `${ testDir } /c` , `${ testDir } /b` , ( err ) => {
39
39
expect ( err ) . to . exist ( )
40
40
done ( )
41
41
} )
@@ -47,7 +47,7 @@ module.exports = (createCommon, options) => {
47
47
series ( [
48
48
( cb ) => ipfs . files . mkdir ( testDir , { p : true } , cb ) ,
49
49
( cb ) => ipfs . files . write ( `${ testDir } /a` , Buffer . from ( 'TEST' ) , { create : true } , cb ) ,
50
- ( cb ) => ipfs . files . cp ( [ `${ testDir } /a` , `${ testDir } /b` ] , cb )
50
+ ( cb ) => ipfs . files . cp ( `${ testDir } /a` , `${ testDir } /b` , cb )
51
51
] , ( err ) => {
52
52
expect ( err ) . to . not . exist ( )
53
53
done ( )
@@ -57,7 +57,7 @@ module.exports = (createCommon, options) => {
57
57
it ( 'should copy dir, expect error' , ( done ) => {
58
58
const testDir = `/test-${ hat ( ) } `
59
59
60
- ipfs . files . cp ( [ `${ testDir } /lv1/lv3` , `${ testDir } /lv1/lv4` ] , ( err ) => {
60
+ ipfs . files . cp ( `${ testDir } /lv1/lv3` , `${ testDir } /lv1/lv4` , ( err ) => {
61
61
expect ( err ) . to . exist ( )
62
62
done ( )
63
63
} )
@@ -68,7 +68,7 @@ module.exports = (createCommon, options) => {
68
68
69
69
series ( [
70
70
( cb ) => ipfs . files . mkdir ( `${ testDir } /lv1/lv2` , { p : true } , cb ) ,
71
- ( cb ) => ipfs . files . cp ( [ `${ testDir } /lv1/lv2` , `${ testDir } /lv1/lv3` ] , cb )
71
+ ( cb ) => ipfs . files . cp ( `${ testDir } /lv1/lv2` , `${ testDir } /lv1/lv3` , cb )
72
72
] , ( err ) => {
73
73
expect ( err ) . to . not . exist ( )
74
74
done ( )
0 commit comments