Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Enhancement: Implement Bootstrap API #298

Merged

Conversation

gavinmcdermott
Copy link
Contributor

Implement the bootstrap API in reference to issue #217 raised by @diasdavid


describe('.list', () => {
it('returns a list of peers', (done) => {
return apiClients.a.bootstrap.list(null, (err, res) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need the null arg?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great question.....we don't

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we take it off then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course! Was away from my machine yesterday - should have mentioned in the note that I'd update the pr within the day. It's up now :)

@daviddias
Copy link
Contributor

Awesome work @gavinmcdermott ! :D left a couple of questions

@daviddias
Copy link
Contributor

LGTM :) Thank you @gavinmcdermott

Could you squash the commits for the merge?

@gavinmcdermott gavinmcdermott force-pushed the feat/implement_bootstrap branch from 8099f6e to f8aa5ed Compare June 18, 2016 17:30
return apiClients.a.bootstrap.add(null)
.catch((err) => {
expect(err).to.be.an.instanceof(Error)
done()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can drop the done in all the promise tests, mocha detects that you return a promise (also need to remove it from the function signature.

@gavinmcdermott gavinmcdermott force-pushed the feat/implement_bootstrap branch from f8aa5ed to 2a62e1e Compare June 21, 2016 05:50
@daviddias daviddias merged commit 59e6656 into ipfs-inactive:master Jun 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants