Conversation
src/cli/commands/files/add.js
Outdated
| let list = [] | ||
| let currentBytes = 0 | ||
|
|
||
| async.waterfall([ |
There was a problem hiding this comment.
lets stick with const waterfall = require('async/waterfall) please
My PR failed to pass the Travis build because of examples/traverse-ipld-graphs/git.js I have had to add this file and correct the code style errors. This should make the tests pass for this PR.
|
Also, does this work over ipfs-api? (i.e with a daemon on?) |
daviddias
left a comment
There was a problem hiding this comment.
This PR needs:
- work with the daemon on (though js-ipfs-api)
- tests
|
Testing the progress barThere is now:
What I tried to do yesterday was hook into progress.stdout and verify that the progress bar was being printed to the terminal. When the tests run progress.stdout is passed to the progress bar library but To get the progress bar to output in tests means you have to highjack stdout in the tests and stub out the following:
Then the progress bar is piped to However I can see the testing coverage has now fallen 😞 |
|
Now done through #1036 |
go-ipfs
js-ipfs
This is the progress bar from https://github.com/visionmedia/node-progress which is being called in
js-ipfs-unixfs-enginein the builder.I have also done a little house keeping in the
src/files/addas the callbacks were getting a little unwieldy.