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

Commit 8099f6e

Browse files
remove the null arg on the call to .list
1 parent 46d2130 commit 8099f6e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/api/bootstrap.spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('.bootstrap', () => {
2525
})
2626
})
2727

28-
it('returns a list of peers when called with a valid arg (ip4)', (done) => {
28+
it('returns a list of containing the bootstrap peer when called with a valid arg (ip4)', (done) => {
2929
return apiClients.a.bootstrap.add(validIp4, (err, res) => {
3030
expect(err).to.not.exist
3131
expect(res).to.be.eql({ Peers: [validIp4] })
@@ -36,7 +36,7 @@ describe('.bootstrap', () => {
3636
})
3737
})
3838

39-
it('returns a list of default peers when called with the default option', (done) => {
39+
it('returns a list of bootstrap peers when called with the default option', (done) => {
4040
return apiClients.a.bootstrap.add(null, { default: true }, (err, res) => {
4141
expect(err).to.not.exist
4242
peers = res.Peers
@@ -49,7 +49,7 @@ describe('.bootstrap', () => {
4949

5050
describe('.list', () => {
5151
it('returns a list of peers', (done) => {
52-
return apiClients.a.bootstrap.list(null, (err, res) => {
52+
return apiClients.a.bootstrap.list((err, res) => {
5353
expect(err).to.not.exist
5454
peers = res.Peers
5555
expect(peers).to.exist
@@ -66,7 +66,7 @@ describe('.bootstrap', () => {
6666
})
6767
})
6868

69-
it('returns empty list when called without an arg or options', (done) => {
69+
it('returns empty list because no peers removed when called without an arg or options', (done) => {
7070
return apiClients.a.bootstrap.rm(null, (err, res) => {
7171
expect(err).to.not.exist
7272
peers = res.Peers
@@ -138,7 +138,7 @@ describe('.bootstrap', () => {
138138

139139
describe('.list', () => {
140140
it('returns a list of peers', (done) => {
141-
return apiClients.a.bootstrap.list(null)
141+
return apiClients.a.bootstrap.list()
142142
.then((res) => {
143143
peers = res.Peers
144144
expect(peers).to.exist

0 commit comments

Comments
 (0)