From fd0befb5d56b6a656fc95af617c0b1d7b7277cc5 Mon Sep 17 00:00:00 2001 From: David Dias Date: Mon, 30 Jan 2017 16:00:09 +0000 Subject: [PATCH] test: another add recursive test --- test/cli/test-files.js | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/test/cli/test-files.js b/test/cli/test-files.js index 2f5510c026..3a5d649d70 100644 --- a/test/cli/test-files.js +++ b/test/cli/test-files.js @@ -72,7 +72,7 @@ describe('files', () => { }) }) - it('add recursively', () => { + it('add recursively test 1', () => { return ipfs('files add -r src/init-files/init-docs').then((out) => { expect(out).to.be.eql([ 'added QmYE7xo6NxbHEVEHej1yzxijYaNY51BaeKxjXxn6Ssa6Bs init-docs/tour/0.0-intro', @@ -89,5 +89,27 @@ describe('files', () => { ].join('\n')) }) }) + + it('add recursively test 2', () => { + return ipfs('files add -r test').then((out) => { + const nLines = out.split('\n').length + expect(nLines).to.be.above(10) + /* + expect(out).to.be.eql([ + 'added QmYE7xo6NxbHEVEHej1yzxijYaNY51BaeKxjXxn6Ssa6Bs init-docs/tour/0.0-intro', + 'added QmciSU8hfpAXKjvK5YLUSwApomGSWN5gFbP4EpDAEzu2Te init-docs/tour', + 'added QmTumTjvcYCAvRRwQ8sDRxh8ezmrcr88YFU7iYNroGGTBZ init-docs/security-notes', + 'added QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB init-docs/readme', + 'added QmdncfsVm2h5Kqq9hPmU7oAVX2zTSVP3L869tgTbPYnsha init-docs/quick-start', + 'added QmY5heUM5qgRubMDD1og9fhCPA6QdkMp3QCwd4s7gJsyE7 init-docs/help', + 'added QmQN88TEidd3RY2u3dpib49fERTDfKtDpvxnvczATNsfKT init-docs/docs/index', + 'added QmegvLXxpVKiZ4b57Xs1syfBVRd8CbucVHAp7KpLQdGieC init-docs/docs', + 'added QmYCvbfNbCwFR45HiNP45rwJgvatpiW38D961L5qAhUM5Y init-docs/contact', + 'added QmZTR5bcpQD7cFgTorqxZDYaew1Wqgfbd2ud9QqGPAkK2V init-docs/about', + 'added QmUhUuiTKkkK8J6JZ9zmj8iNHPuNfGYcszgRumzhHBxEEU init-docs' + ].join('\n')) + */ + }) + }) }) })