Skip to content

Commit

Permalink
refactor(groupBy-spec): no getUnsubscriptionFrame()
Browse files Browse the repository at this point in the history
Replace TestScheduler.getUnsubscriptionFrame() with
TestScheduler.parseMarblesAsSubscription().unsubscribedFrame. The former
should be deprecated.
  • Loading branch information
Andre Medeiros authored and benlesh committed Oct 13, 2015
1 parent 23a7574 commit c61adb1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions spec/operators/groupBy-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,9 @@ describe('Observable.prototype.groupBy()', function () {
z: Rx.TestScheduler.parseMarbles(z, values)
};

var fooUnsubscriptionFrame = Rx.TestScheduler.getUnsubscriptionFrame(unsubw);
var fooUnsubscriptionFrame = Rx.TestScheduler
.parseMarblesAsSubscriptions(unsubw)
.unsubscribedFrame;

var source = e1
.groupBy(function (val) {
Expand Down Expand Up @@ -423,10 +425,10 @@ describe('Observable.prototype.groupBy()', function () {
};

var unsubscriptionFrames = {
foo: Rx.TestScheduler.getUnsubscriptionFrame(unsubw),
bar: Rx.TestScheduler.getUnsubscriptionFrame(unsubx),
baz: Rx.TestScheduler.getUnsubscriptionFrame(unsuby),
qux: Rx.TestScheduler.getUnsubscriptionFrame(unsubz)
foo: Rx.TestScheduler.parseMarblesAsSubscriptions(unsubw).unsubscribedFrame,
bar: Rx.TestScheduler.parseMarblesAsSubscriptions(unsubx).unsubscribedFrame,
baz: Rx.TestScheduler.parseMarblesAsSubscriptions(unsuby).unsubscribedFrame,
qux: Rx.TestScheduler.parseMarblesAsSubscriptions(unsubz).unsubscribedFrame
};

var source = e1
Expand Down

0 comments on commit c61adb1

Please sign in to comment.