Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(withLatestFrom): change from hot to cold observable in marble test #2578

Merged
merged 1 commit into from Apr 30, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions spec/operators/withLatestFrom-spec.ts
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