File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -195,28 +195,28 @@ describe('Topic', function() {
195
195
it ( 'should return a stream' , function ( done ) {
196
196
var fakeStream = { } ;
197
197
198
- topic . pubsub . getSubscriptions = function ( options ) {
198
+ topic . pubsub . getSubscriptionsStream = function ( options ) {
199
199
assert . deepEqual ( options , { topic : topic } ) ;
200
200
setImmediate ( done ) ;
201
201
return fakeStream ;
202
202
} ;
203
203
204
- var stream = topic . getSubscriptions ( ) ;
204
+ var stream = topic . getSubscriptionsStream ( ) ;
205
205
assert . strictEqual ( stream , fakeStream ) ;
206
206
} ) ;
207
207
208
208
it ( 'should pass correct args to getSubscriptionsStream' , function ( done ) {
209
209
var opts = { a : 'b' , c : 'd' } ;
210
210
211
211
topic . pubsub = {
212
- getSubscriptions : function ( options ) {
212
+ getSubscriptionsStream : function ( options ) {
213
213
assert . deepEqual ( options , opts ) ;
214
214
assert . deepEqual ( options . topic , topic ) ;
215
215
done ( ) ;
216
216
}
217
217
} ;
218
218
219
- topic . getSubscriptions ( opts ) ;
219
+ topic . getSubscriptionsStream ( opts ) ;
220
220
} ) ;
221
221
} ) ;
222
222
You can’t perform that action at this time.
0 commit comments