Skip to content

Commit

Permalink
test(dtslint): add dtslint test for never observable static function (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dkosasih authored and cartant committed Jan 3, 2019
1 parent bd0b6ca commit b0f4fc0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec-dtslint/observables/never-spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { never } from 'rxjs';

it('should not support any parameter', () => {
const a = never(1); // $ExpectError
});

it('should infer never', () => {
const a = never(); // $ExpectType Observable<never>
});

0 comments on commit b0f4fc0

Please sign in to comment.