Skip to content

Commit

Permalink
test: correct type for selector function
Browse files Browse the repository at this point in the history
The hot() function will create an Observable that emits strings from
marble diagrams (even if the strings contain numbers).
So the type of x should be string, not number.
  • Loading branch information
felixfbecker committed Aug 23, 2018
1 parent 86e2707 commit 2706b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/operators/zipAll-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ describe('zipAll operator', () => {
const b = [4, 5, 6];
const expected = '---x--#';

const selector = function (x: number, y: number) {
const selector = function (x: string, y: number) {
if (y === 5) {
throw new Error('too bad');
} else {
Expand Down

0 comments on commit 2706b1a

Please sign in to comment.