Skip to content

Commit

Permalink
test(flattenConcurrently): fix flattenConcurrently test for node.js too
Browse files Browse the repository at this point in the history
  • Loading branch information
staltz committed Nov 25, 2016
1 parent 248c495 commit 7327a9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/extra/flattenConcurrently.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ describe('flattenConcurrently (extra)', () => {

it('should expand 3 sync events as a periodic each', (done) => {
const stream = xs.of(0, 1, 2)
.map(i => xs.periodic(100 * (i + 1)).take(2).map(x => `${i}${x}`))
.map(i => xs.periodic(100 * (i + 1) + 10 * i).take(2).map(x => `${i}${x}`))
.compose(flattenConcurrently);
// ---x---x---x---x---x---x
// ---00--01
// -------10------11
// --------10------11
// -----------20----------21
const expected = ['00', '01', '10', '20', '11', '21'];

Expand Down

0 comments on commit 7327a9d

Please sign in to comment.