Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 06a9198

Browse files
committed
chore: CLI: tests: added recursive ls test
1 parent e91d0d8 commit 06a9198

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/cli/files.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,23 @@ describe('files', () => runOnAndOff((thing) => {
311311
})
312312
})
313313

314+
it('ls <subdir>', function () {
315+
this.timeout(20 * 1000)
316+
317+
return ipfs('ls /ipfs/QmYmW4HiZhotsoSqnv2o1oUusvkRM8b9RweBoH7ao5nki2/init-docs')
318+
.then((out) => {
319+
expect(out).to.eql(
320+
'QmZTR5bcpQD7cFgTorqxZDYaew1Wqgfbd2ud9QqGPAkK2V 1688 about\n' +
321+
'QmYCvbfNbCwFR45HiNP45rwJgvatpiW38D961L5qAhUM5Y 200 contact\n' +
322+
'QmegvLXxpVKiZ4b57Xs1syfBVRd8CbucVHAp7KpLQdGieC 65 docs/\n' +
323+
'QmY5heUM5qgRubMDD1og9fhCPA6QdkMp3QCwd4s7gJsyE7 322 help\n' +
324+
'QmdncfsVm2h5Kqq9hPmU7oAVX2zTSVP3L869tgTbPYnsha 1728 quick-start\n' +
325+
'QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB 1102 readme\n' +
326+
'QmTumTjvcYCAvRRwQ8sDRxh8ezmrcr88YFU7iYNroGGTBZ 1027 security-notes\n' +
327+
'QmciSU8hfpAXKjvK5YLUSwApomGSWN5gFbP4EpDAEzu2Te 863 tour/\n')
328+
})
329+
})
330+
314331
it('ls --help', function () {
315332
this.timeout(20 * 1000)
316333

0 commit comments

Comments
 (0)