Skip to content

Commit

Permalink
Update jest-utils.ts (#2990)
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeiscontent authored May 3, 2023
1 parent f172429 commit f3c3607
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/expect/src/jest-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,11 @@ function isDomNode(obj: any): boolean {
return (
obj !== null
&& typeof obj === 'object'
&& 'nodeType' in obj
&& typeof obj.nodeType === 'number'
&& 'nodeName' in obj
&& typeof obj.nodeName === 'string'
&& 'isEqualNode' in obj
&& typeof obj.isEqualNode === 'function'
)
}
Expand Down

0 comments on commit f3c3607

Please sign in to comment.