Skip to content

Commit

Permalink
fix(withLatestFrom): change from hot to cold observable in marble test
Browse files Browse the repository at this point in the history
fixes #2526
  • Loading branch information
Boshen committed Apr 25, 2017
1 parent e69d876 commit 0c65446
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/operators/withLatestFrom-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const Observable = Rx.Observable;
/** @test {withLatestFrom} */
describe('Observable.prototype.withLatestFrom', () => {
asDiagram('withLatestFrom')('should combine events from cold observables', () => {
const e1 = hot('-a--b-----c-d-e-|');
const e2 = hot('--1--2-3-4---| ');
const e1 = cold('-a--b-----c-d-e-|');
const e2 = cold('--1--2-3-4---| ');
const expected = '----B-----C-D-E-|';

const result = e1.withLatestFrom(e2, (a: string, b: string) => String(a) + String(b));
Expand Down

0 comments on commit 0c65446

Please sign in to comment.