Skip to content

Commit 774db64

Browse files
callmehiphopstephenplusplus
authored andcommitted
pubsub: fixed test typos (#1729)
1 parent fb13f28 commit 774db64

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/pubsub/test/topic.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -195,28 +195,28 @@ describe('Topic', function() {
195195
it('should return a stream', function(done) {
196196
var fakeStream = {};
197197

198-
topic.pubsub.getSubscriptions = function(options) {
198+
topic.pubsub.getSubscriptionsStream = function(options) {
199199
assert.deepEqual(options, { topic: topic });
200200
setImmediate(done);
201201
return fakeStream;
202202
};
203203

204-
var stream = topic.getSubscriptions();
204+
var stream = topic.getSubscriptionsStream();
205205
assert.strictEqual(stream, fakeStream);
206206
});
207207

208208
it('should pass correct args to getSubscriptionsStream', function(done) {
209209
var opts = { a: 'b', c: 'd' };
210210

211211
topic.pubsub = {
212-
getSubscriptions: function(options) {
212+
getSubscriptionsStream: function(options) {
213213
assert.deepEqual(options, opts);
214214
assert.deepEqual(options.topic, topic);
215215
done();
216216
}
217217
};
218218

219-
topic.getSubscriptions(opts);
219+
topic.getSubscriptionsStream(opts);
220220
});
221221
});
222222

0 commit comments

Comments
 (0)