@@ -24,7 +24,7 @@ if (isNode) {
24
24
}
25
25
26
26
describe ( '.add' , ( ) => {
27
- it ( 'add file ' , ( done ) => {
27
+ it ( 'add buffer as tuple ' , ( done ) => {
28
28
if ( ! isNode ) {
29
29
return done ( )
30
30
}
@@ -74,12 +74,12 @@ describe('.add', () => {
74
74
} )
75
75
} )
76
76
77
- it ( 'add path ' , ( done ) => {
77
+ it ( 'local fs: add file ' , ( done ) => {
78
78
if ( ! isNode ) {
79
79
return done ( )
80
80
}
81
81
82
- apiClients . a . add ( testfilePath , ( err , res ) => {
82
+ apiClients . a . addFiles ( testfilePath , ( err , res ) => {
83
83
expect ( err ) . to . not . exist
84
84
85
85
const added = res [ 0 ] != null ? res [ 0 ] : res
@@ -90,8 +90,8 @@ describe('.add', () => {
90
90
} )
91
91
} )
92
92
93
- it ( 'add a nested dir following symlinks' , ( done ) => {
94
- apiClients . a . add ( path . join ( __dirname , '/../test-folder' ) , { recursive : true } , ( err , res ) => {
93
+ it ( 'local fs: add nested dir (follow symlinks) ' , ( done ) => {
94
+ apiClients . a . addFiles ( path . join ( __dirname , '/../test-folder' ) , { recursive : true } , ( err , res ) => {
95
95
if ( isNode ) {
96
96
expect ( err ) . to . not . exist
97
97
@@ -108,8 +108,8 @@ describe('.add', () => {
108
108
} )
109
109
} )
110
110
111
- it ( 'add a nested dir without following symlinks' , ( done ) => {
112
- apiClients . a . add ( path . join ( __dirname , '/../test-folder' ) , { recursive : true , followSymlinks : false } , ( err , res ) => {
111
+ it ( 'local fs: add nested dir (don\'t follow symlinks) ' , ( done ) => {
112
+ apiClients . a . addFiles ( path . join ( __dirname , '/../test-folder' ) , { recursive : true , followSymlinks : false } , ( err , res ) => {
113
113
if ( isNode ) {
114
114
expect ( err ) . to . not . exist
115
115
0 commit comments