Skip to content

Commit

Permalink
test(ScalarObservable): ensure is being set properly
Browse files Browse the repository at this point in the history
related #1674
  • Loading branch information
benlesh committed May 2, 2016
1 parent 5037b3a commit bea15ca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/observables/ScalarObservable-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,14 @@ describe('ScalarObservable', () => {
subscriber.isUnsubscribed = true;
rxTestScheduler.flush();
});

it('should set `_isScalar` to true when NOT called with a Scheduler', () => {
const s = new ScalarObservable(1);
expect(s._isScalar).to.be.true;
});

it('should set `_isScalar` to false when called with a Scheduler', () => {
const s = new ScalarObservable(1, rxTestScheduler);
expect(s._isScalar).to.be.false;
});
});

0 comments on commit bea15ca

Please sign in to comment.