@@ -13,10 +13,6 @@ it('should support an index parameter', () => {
13
13
const o = of ( 'a' , 'b' , 'c' ) . pipe ( map ( ( value , index ) => index ) ) ; // $ExpectType Observable<number>
14
14
} ) ;
15
15
16
- it ( 'should support an extra parameter' , ( ) => {
17
- const o = of ( 1 , 2 , 3 ) . pipe ( map ( value => value , 'something' ) ) ; // $ExpectType Observable<number>
18
- } ) ;
19
-
20
16
it ( 'should enforce types' , ( ) => {
21
17
const o = of ( 1 , 2 , 3 ) . pipe ( map ( ) ) ; // $ExpectError
22
18
} ) ;
@@ -25,16 +21,3 @@ it('should enforce the projector types', () => {
25
21
const o = of ( 1 , 2 , 3 ) . pipe ( map ( ( value : string ) => value ) ) ; // $ExpectError
26
22
const p = of ( 1 , 2 , 3 ) . pipe ( map ( ( value , index : string ) => value ) ) ; // $ExpectError
27
23
} ) ;
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