Commit bff2f98 1 parent ceb7851 commit bff2f98 Copy full SHA for bff2f98
File tree 1 file changed +7
-9
lines changed
1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -199,9 +199,9 @@ const {
199
199
} )
200
200
201
201
test ( 'start changes' , t => {
202
- t . plan ( 2 )
202
+ t . plan ( 5 )
203
203
const client = redis . createClient ( )
204
- const url = 'https://skimdb.npmjs.com/registry'
204
+ const url = 'https://skimdb.npmjs.com/registry/ '
205
205
let savedChanges
206
206
startChanges ( {
207
207
channel,
@@ -212,14 +212,12 @@ const {
212
212
query : { token : '1234' }
213
213
}
214
214
} , ( err , changes ) => {
215
- if ( err ) return t . ok ( savedChanges . destroyed , 'destroyed' )
215
+ if ( err ) return t . ok ( savedChanges . _destroying , 'destroyed' )
216
216
savedChanges = changes
217
- t . same ( changes . _opts , {
218
- db : url ,
219
- since : 'now' ,
220
- include_docs : true ,
221
- query_params : { token : '1234' }
222
- } , 'opts' )
217
+ t . same ( changes . db , url )
218
+ t . same ( changes . since , 'now' )
219
+ t . same ( changes . include_docs , true )
220
+ t . same ( changes . query_params , { token : '1234' } )
223
221
changes . emit ( 'error' , new Error ( 'restart' ) )
224
222
} )
225
223
} )
You can’t perform that action at this time.
0 commit comments