@@ -72,7 +72,7 @@ describe('files', () => {
72
72
} )
73
73
} )
74
74
75
- it ( 'add recursively' , ( ) => {
75
+ it ( 'add recursively test 1 ' , ( ) => {
76
76
return ipfs ( 'files add -r src/init-files/init-docs' ) . then ( ( out ) => {
77
77
expect ( out ) . to . be . eql ( [
78
78
'added QmYE7xo6NxbHEVEHej1yzxijYaNY51BaeKxjXxn6Ssa6Bs init-docs/tour/0.0-intro' ,
@@ -89,5 +89,27 @@ describe('files', () => {
89
89
] . join ( '\n' ) )
90
90
} )
91
91
} )
92
+
93
+ it ( 'add recursively test 2' , ( ) => {
94
+ return ipfs ( 'files add -r test' ) . then ( ( out ) => {
95
+ const nLines = out . split ( '\n' ) . length
96
+ expect ( nLines ) . to . be . above ( 10 )
97
+ /*
98
+ expect(out).to.be.eql([
99
+ 'added QmYE7xo6NxbHEVEHej1yzxijYaNY51BaeKxjXxn6Ssa6Bs init-docs/tour/0.0-intro',
100
+ 'added QmciSU8hfpAXKjvK5YLUSwApomGSWN5gFbP4EpDAEzu2Te init-docs/tour',
101
+ 'added QmTumTjvcYCAvRRwQ8sDRxh8ezmrcr88YFU7iYNroGGTBZ init-docs/security-notes',
102
+ 'added QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB init-docs/readme',
103
+ 'added QmdncfsVm2h5Kqq9hPmU7oAVX2zTSVP3L869tgTbPYnsha init-docs/quick-start',
104
+ 'added QmY5heUM5qgRubMDD1og9fhCPA6QdkMp3QCwd4s7gJsyE7 init-docs/help',
105
+ 'added QmQN88TEidd3RY2u3dpib49fERTDfKtDpvxnvczATNsfKT init-docs/docs/index',
106
+ 'added QmegvLXxpVKiZ4b57Xs1syfBVRd8CbucVHAp7KpLQdGieC init-docs/docs',
107
+ 'added QmYCvbfNbCwFR45HiNP45rwJgvatpiW38D961L5qAhUM5Y init-docs/contact',
108
+ 'added QmZTR5bcpQD7cFgTorqxZDYaew1Wqgfbd2ud9QqGPAkK2V init-docs/about',
109
+ 'added QmUhUuiTKkkK8J6JZ9zmj8iNHPuNfGYcszgRumzhHBxEEU init-docs'
110
+ ].join('\n'))
111
+ */
112
+ } )
113
+ } )
92
114
} )
93
115
} )
0 commit comments