Skip to content

Commit

Permalink
test(forkJoin): add failing test for #4737
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Apr 26, 2019
1 parent cd5895d commit 08782ea
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/observables/forkJoin-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,5 +504,18 @@ describe('forkJoin', () => {
expectSubscriptions(e1.subscriptions).toBe(e1subs);
expectSubscriptions(e2.subscriptions).toBe(e2subs);
});

it('should accept promise as the first arg', done => {
const e1 = forkJoin(Promise.resolve(1));
const values: number[][] = [];

e1.subscribe({
next: x => values.push(x),
complete: () => {
expect(values).to.deep.equal([[1]]);
done();
}
});
});
});
});

0 comments on commit 08782ea

Please sign in to comment.