Skip to content

Commit 457c915

Browse files
committed
chore(map): update dtslint
1 parent 0837811 commit 457c915

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

spec-dtslint/operators/map-spec.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ it('should support an index parameter', () => {
1313
const o = of('a', 'b', 'c').pipe(map((value, index) => index)); // $ExpectType Observable<number>
1414
});
1515

16-
it('should support an extra parameter', () => {
17-
const o = of(1, 2, 3).pipe(map(value => value, 'something')); // $ExpectType Observable<number>
18-
});
19-
2016
it('should enforce types', () => {
2117
const o = of(1, 2, 3).pipe(map()); // $ExpectError
2218
});
@@ -25,16 +21,3 @@ it('should enforce the projector types', () => {
2521
const o = of(1, 2, 3).pipe(map((value: string) => value)); // $ExpectError
2622
const p = of(1, 2, 3).pipe(map((value, index: string) => value)); // $ExpectError
2723
});
28-
29-
it('should support this', () => {
30-
const thisArg = { limit: 2 };
31-
const o = of(1, 2, 3).pipe(map(function (val) {
32-
const limit = this.limit; // $ExpectType number
33-
return val < limit ? val : limit;
34-
}, thisArg));
35-
});
36-
37-
it('should deprecate thisArg usage', () => {
38-
const a = of(1, 2, 3).pipe(map((value) => value)); // $ExpectNoDeprecation
39-
const b = of(1, 2, 3).pipe(map((value) => value, {})); // $ExpectDeprecation
40-
});

0 commit comments

Comments
 (0)