Skip to content

Commit

Permalink
tests(skipUntil): which should emit for a synchronous notifier emits
Browse files Browse the repository at this point in the history
  • Loading branch information
claylaut committed May 11, 2018
1 parent 91801dd commit 297a21f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/operators/skipUntil-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ describe('skipUntil', () => {
expectSubscriptions(skip.subscriptions).toBe(skipSubs);
});

it('should emit elements after a synchronous notifier emits', () => {
const values: string[] = [];

of('a', 'b').pipe(skipUntil(of('x'))).subscribe(
value => values.push(value),
err => { throw err; },
() => expect(values).to.deep.equal(['a', 'b'])
);
});

it('should raise an error if notifier throws and source is hot', () => {
const e1 = hot('--a--b--c--d--e--|');
const e1subs = '^ ! ';
Expand Down

0 comments on commit 297a21f

Please sign in to comment.