Skip to content

Commit

Permalink
chore(dtslint): add pipe rest parmas test
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Jul 25, 2018
1 parent 0fe5381 commit 74c17d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec-dtslint/Observable-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ describe('pipe', () => {
const o = of('foo').pipe(a('1'), a('2'), a('3'), a('4'), a('5'), a('6'), a('7'), a('8'), a('9'), a('10')); // $ExpectType Observable<{}>
});

it('should require a type assertion for more than 9 arguments', () => {
const o: Observable<'10'> = of('foo').pipe(a('1'), a('2'), a('3'), a('4'), a('5'), a('6'), a('7'), a('8'), a('9'), a('10')); // $ExpectError
});

it('should enforce types for the 1st argument', () => {
const o = of('foo').pipe(a('#', '1')); // $ExpectError
});
Expand Down

0 comments on commit 74c17d4

Please sign in to comment.