@@ -25,7 +25,7 @@ describe('.bootstrap', () => {
25
25
} )
26
26
} )
27
27
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 ) => {
29
29
return apiClients . a . bootstrap . add ( validIp4 , ( err , res ) => {
30
30
expect ( err ) . to . not . exist
31
31
expect ( res ) . to . be . eql ( { Peers : [ validIp4 ] } )
@@ -36,7 +36,7 @@ describe('.bootstrap', () => {
36
36
} )
37
37
} )
38
38
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 ) => {
40
40
return apiClients . a . bootstrap . add ( null , { default : true } , ( err , res ) => {
41
41
expect ( err ) . to . not . exist
42
42
peers = res . Peers
@@ -49,7 +49,7 @@ describe('.bootstrap', () => {
49
49
50
50
describe ( '.list' , ( ) => {
51
51
it ( 'returns a list of peers' , ( done ) => {
52
- return apiClients . a . bootstrap . list ( null , ( err , res ) => {
52
+ return apiClients . a . bootstrap . list ( ( err , res ) => {
53
53
expect ( err ) . to . not . exist
54
54
peers = res . Peers
55
55
expect ( peers ) . to . exist
@@ -66,7 +66,7 @@ describe('.bootstrap', () => {
66
66
} )
67
67
} )
68
68
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 ) => {
70
70
return apiClients . a . bootstrap . rm ( null , ( err , res ) => {
71
71
expect ( err ) . to . not . exist
72
72
peers = res . Peers
@@ -138,7 +138,7 @@ describe('.bootstrap', () => {
138
138
139
139
describe ( '.list' , ( ) => {
140
140
it ( 'returns a list of peers' , ( done ) => {
141
- return apiClients . a . bootstrap . list ( null )
141
+ return apiClients . a . bootstrap . list ( )
142
142
. then ( ( res ) => {
143
143
peers = res . Peers
144
144
expect ( peers ) . to . exist
0 commit comments