Skip to content

Commit

Permalink
test(repeatWhen): fix TypeScript 2.0 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Mar 25, 2018
1 parent 8fe004c commit 3c86f32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/operators/repeatWhen-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ describe('Observable.prototype.repeatWhen', () => {
Observable.prototype.subscribe = function (...args: any[]): any {
let [subscriber] = args;
if (!(subscriber instanceof Rx.Subscriber)) {
subscriber = new Rx.Subscriber<any>(...args);
subscriber = new Rx.Subscriber<any>(args[0], args[1], args[2]);
}
subscriber.error = function (err: any): void {
errors.push(err);
Expand All @@ -122,7 +122,7 @@ describe('Observable.prototype.repeatWhen', () => {
Observable.prototype.subscribe = function (...args: any[]): any {
let [subscriber] = args;
if (!(subscriber instanceof Rx.Subscriber)) {
subscriber = new Rx.Subscriber<any>(...args);
subscriber = new Rx.Subscriber<any>(args[0], args[1], args[2]);
}
subscriber.error = function (err: any): void {
errors.push(err);
Expand Down

0 comments on commit 3c86f32

Please sign in to comment.