@@ -19,7 +19,7 @@ describe('common', function() {
19
19
20
20
it ( 'should filter objects' , function ( ) {
21
21
const input = { foo : 1 , bar : 2 , baz : 3 , qux : 4 } ;
22
- const filtered = filter ( input , function ( val , key ) { return val > 2 ; } ) ;
22
+ const filtered = filter ( input , function ( value , _key ) { return value > 2 ; } ) ;
23
23
expect ( Object . keys ( filtered ) . length ) . toBe ( 2 ) ;
24
24
expect ( filtered ) . toEqual ( { baz : 3 , qux : 4 } ) ;
25
25
} ) ;
@@ -99,18 +99,18 @@ describe('common', function() {
99
99
} ) ;
100
100
101
101
it ( 'should accept functions with parameters' , function ( ) {
102
- function fn ( foo , bar ) { }
102
+ function fn ( _foo , _bar ) { }
103
103
expect ( isInjectable ( fn ) ) . toBeTruthy ( ) ;
104
104
} ) ;
105
105
106
106
it ( 'should accept ng1 annotated functions' , function ( ) {
107
107
fn [ '$inject' ] = [ 'foo' , 'bar' ] ;
108
- function fn ( foo , bar ) { }
108
+ function fn ( _foo , _bar ) { }
109
109
expect ( isInjectable ( fn ) ) . toBeTruthy ( ) ;
110
110
} ) ;
111
111
112
112
it ( 'should accept ng1 array notation' , function ( ) {
113
- const fn = [ 'foo' , 'bar' , function ( foo , bar ) { } ] ;
113
+ const fn = [ 'foo' , 'bar' , function ( _foo , _bar ) { } ] ;
114
114
expect ( isInjectable ( fn ) ) . toBeTruthy ( ) ;
115
115
} ) ;
116
116
} ) ;
0 commit comments