@@ -35,7 +35,7 @@ module.exports = (createCommon, options) => {
3535 it ( 'should copy file, expect error' , ( done ) => {
3636 const testDir = `/test-${ hat ( ) } `
3737
38- ipfs . files . cp ( [ `${ testDir } /c` , `${ testDir } /b` ] , ( err ) => {
38+ ipfs . files . cp ( `${ testDir } /c` , `${ testDir } /b` , ( err ) => {
3939 expect ( err ) . to . exist ( )
4040 done ( )
4141 } )
@@ -47,7 +47,7 @@ module.exports = (createCommon, options) => {
4747 series ( [
4848 ( cb ) => ipfs . files . mkdir ( testDir , { p : true } , cb ) ,
4949 ( 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 )
5151 ] , ( err ) => {
5252 expect ( err ) . to . not . exist ( )
5353 done ( )
@@ -57,7 +57,7 @@ module.exports = (createCommon, options) => {
5757 it ( 'should copy dir, expect error' , ( done ) => {
5858 const testDir = `/test-${ hat ( ) } `
5959
60- ipfs . files . cp ( [ `${ testDir } /lv1/lv3` , `${ testDir } /lv1/lv4` ] , ( err ) => {
60+ ipfs . files . cp ( `${ testDir } /lv1/lv3` , `${ testDir } /lv1/lv4` , ( err ) => {
6161 expect ( err ) . to . exist ( )
6262 done ( )
6363 } )
@@ -68,7 +68,7 @@ module.exports = (createCommon, options) => {
6868
6969 series ( [
7070 ( 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 )
7272 ] , ( err ) => {
7373 expect ( err ) . to . not . exist ( )
7474 done ( )
0 commit comments