Skip to content

Commit

Permalink
test(dtslint): add takeUntil
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver committed Sep 9, 2018
1 parent c1c66d2 commit c7f1fe5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec-dtslint/operators/takeUntil-spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { of } from 'rxjs';
import { takeUntil } from 'rxjs/operators';

it('should infer correctly', () => {
const o = of(1, 2, 3).pipe(takeUntil(of(1, 2, 3))); // $ExpectType Observable<number>
});

it('should enforce types', () => {
const o = of(1, 2, 3).pipe(takeUntil(p => p < 3)); // $ExpectError
});

0 comments on commit c7f1fe5

Please sign in to comment.