This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ exports.subscribe = {
18
18
19
19
const ipfs = request . server . app . ipfs
20
20
21
- const res = new PassThrough ( { highWaterMark : 1 } )
21
+ const res = new PassThrough ( { highWaterMark : 1 } )
22
22
23
23
const handler = ( msg ) => {
24
24
res . write ( JSON . stringify ( {
@@ -89,7 +89,7 @@ exports.ls = {
89
89
return reply ( new Error ( `Failed to list subscriptions: ${ err } ` ) )
90
90
}
91
91
92
- reply ( { Strings : subscriptions } )
92
+ reply ( { Strings : subscriptions } )
93
93
} )
94
94
}
95
95
}
@@ -108,7 +108,7 @@ exports.peers = {
108
108
return reply ( new Error ( message ) )
109
109
}
110
110
111
- reply ( { Strings : peers } )
111
+ reply ( { Strings : peers } )
112
112
} )
113
113
}
114
114
}
Original file line number Diff line number Diff line change @@ -91,17 +91,6 @@ module.exports = (http) => {
91
91
} )
92
92
93
93
describe ( '/peers' , ( ) => {
94
- it ( 'returns 200 if no topic is provided' , ( done ) => {
95
- api . inject ( {
96
- method : 'GET' ,
97
- url : `/api/v0/pubsub/peers`
98
- } , ( res ) => {
99
- expect ( res . statusCode ) . to . equal ( 200 )
100
- expect ( res . result . Strings ) . to . be . eql ( [ ] )
101
- done ( )
102
- } )
103
- } )
104
-
105
94
it ( 'returns 200 if not subscribed to a topic' , ( done ) => {
106
95
api . inject ( {
107
96
method : 'GET' ,
You can’t perform that action at this time.
0 commit comments