@@ -17,15 +17,15 @@ describe('Entity utils', () => {
1717 it ( 'should not warn when key does exist' , ( ) => {
1818 const spy = spyOn ( console , 'warn' )
1919
20- const key = selectIdValue ( AClockworkOrange , book => book . id )
20+ selectIdValue ( AClockworkOrange , book => book . id )
2121
2222 expect ( spy ) . not . toHaveBeenCalled ( )
2323 } )
2424
2525 it ( 'should warn when key does not exist in dev mode' , ( ) => {
2626 const spy = spyOn ( console , 'warn' )
2727
28- const key = selectIdValue ( AClockworkOrange , ( book : any ) => book . foo )
28+ selectIdValue ( AClockworkOrange , ( book : any ) => book . foo )
2929
3030 expect ( spy ) . toHaveBeenCalled ( )
3131 } )
@@ -34,10 +34,7 @@ describe('Entity utils', () => {
3434 const spy = spyOn ( console , 'warn' )
3535
3636 const undefinedAClockworkOrange = { ...AClockworkOrange , id : undefined }
37- const key = selectIdValue (
38- undefinedAClockworkOrange ,
39- ( book : any ) => book . id
40- )
37+ selectIdValue ( undefinedAClockworkOrange , ( book : any ) => book . id )
4138
4239 expect ( spy ) . toHaveBeenCalled ( )
4340 } )
@@ -46,7 +43,7 @@ describe('Entity utils', () => {
4643 process . env . NODE_ENV = 'production'
4744 const spy = spyOn ( console , 'warn' )
4845
49- const key = selectIdValue ( AClockworkOrange , ( book : any ) => book . foo )
46+ selectIdValue ( AClockworkOrange , ( book : any ) => book . foo )
5047
5148 expect ( spy ) . not . toHaveBeenCalled ( )
5249 } )
@@ -56,10 +53,7 @@ describe('Entity utils', () => {
5653 const spy = spyOn ( console , 'warn' )
5754
5855 const undefinedAClockworkOrange = { ...AClockworkOrange , id : undefined }
59- const key = selectIdValue (
60- undefinedAClockworkOrange ,
61- ( book : any ) => book . id
62- )
56+ selectIdValue ( undefinedAClockworkOrange , ( book : any ) => book . id )
6357
6458 expect ( spy ) . not . toHaveBeenCalled ( )
6559 } )
0 commit comments