Skip to content

Commit

Permalink
test: add failing subscription marble tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Jun 16, 2020
1 parent cd7d649 commit 6e7b77f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/schedulers/TestScheduler-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,18 @@ describe('TestScheduler', () => {
expectSubscriptions(source.subscriptions).toBe(subs);
source.subscribe();
});

it('should support empty subscription marbles', () => {
const source = cold('---a---b-|');
const subs = '----------';
expectSubscriptions(source.subscriptions).toBe(subs);
});

it('should support empty subscription marbles within arrays', () => {
const source = cold('---a---b-|');
const subs = ['----------'];
expectSubscriptions(source.subscriptions).toBe(subs);
});
});

describe('end-to-end helper tests', () => {
Expand Down

0 comments on commit 6e7b77f

Please sign in to comment.