Skip to content

Commit

Permalink
test(forEach): update browser compatibility
Browse files Browse the repository at this point in the history
- provide delay to setInterval() in test specs to ensure call executes repeatedly

closes #1451
  • Loading branch information
kwonoj committed Mar 10, 2016
1 parent fffc586 commit 3b5453b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/Observable-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ describe('Observable', () => {
let unsubscribeCalled = false;
const syncObservable = new Observable<number>((observer: Rx.Observer<number>) => {
let i = 1;
const id = setInterval(() => observer.next(i++));
const id = setInterval(() => observer.next(i++), 1);

return () => {
clearInterval(id);
Expand Down

0 comments on commit 3b5453b

Please sign in to comment.