File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
packages/expect-utils/src Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -593,7 +593,7 @@ describe('iterableEquality', () => {
593593 } ) ;
594594
595595 test ( 'returns true when given a symbols keys within equal objects' , ( ) => {
596- const KEY = Symbol ( )
596+ const KEY = Symbol ( ) ;
597597
598598 const a = {
599599 [ Symbol . iterator ] : ( ) => ( { next : ( ) => ( { done : true } ) } ) ,
@@ -608,7 +608,7 @@ describe('iterableEquality', () => {
608608 } ) ;
609609
610610 test ( 'returns false when given a symbols keys within inequal objects' , ( ) => {
611- const KEY = Symbol ( )
611+ const KEY = Symbol ( ) ;
612612
613613 const a = {
614614 [ Symbol . iterator ] : ( ) => ( { next : ( ) => ( { done : true } ) } ) ,
Original file line number Diff line number Diff line change @@ -321,15 +321,13 @@ export const iterableEquality = (
321321} ;
322322
323323const entries = ( obj : any ) => {
324- if ( ! isObject ( obj ) ) return [ ] ;
324+ if ( ! isObject ( obj ) ) return [ ] ;
325325
326- return Object
327- . getOwnPropertySymbols ( obj )
326+ return Object . getOwnPropertySymbols ( obj )
328327 . filter ( key => key !== Symbol . iterator )
329328 . map ( key => [ key , obj [ key ] ] )
330-
331- . concat ( Object . entries ( obj ) )
332- }
329+ . concat ( Object . entries ( obj ) ) ;
330+ } ;
333331
334332const isObject = ( a : any ) => a !== null && typeof a === 'object' ;
335333
You can’t perform that action at this time.
0 commit comments