File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 3030- ` [docs] ` Mention Jest MongoDB Preset ([ #8318 ] ( https://github.com/facebook/jest/pull/8318 ) )
3131- ` [@jest/reporters] ` Migrate away from ` istanbul-api ` ([ #8294 ] ( https://github.com/facebook/jest/pull/8294 ) )
3232- ` [*] ` Delete obsolete emails tag from header comment in test files ([ #8377 ] ( https://github.com/facebook/jest/pull/8377 ) )
33+ - ` [expect] ` optimize compare nodes ([ #8368 ] ( https://github.com/facebook/jest/pull/8368 ) )
3334
3435### Performance
3536
Original file line number Diff line number Diff line change @@ -126,10 +126,8 @@ function eq(
126126 return false ;
127127 }
128128
129- var aIsDomNode = isDomNode ( a ) ;
130- var bIsDomNode = isDomNode ( b ) ;
131129 // Use DOM3 method isEqualNode (IE>=9)
132- if ( aIsDomNode && typeof a . isEqualNode === 'function' && bIsDomNode ) {
130+ if ( isDomNode ( a ) && isDomNode ( b ) ) {
133131 return a . isEqualNode ( b ) ;
134132 }
135133
You can’t perform that action at this time.
0 commit comments