Skip to content

Commit a04f2da

Browse files
authored
Update DOMElement.ts
1 parent ea52ca4 commit a04f2da

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/pretty-format/src/plugins/DOMElement.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ const testHasAttribute = (val: any) => {
3232

3333
const isCustomElement = (val: any) => {
3434
const { tagName } = val
35-
return (typeof tagName === 'string' && tagName.includes('-')) ||
36-
testHasAttribute(val);
35+
return ((typeof tagName === 'string' && tagName.includes('-')) || testHasAttribute(val));
3736
}
3837

3938
const testNode = (val: any) => {

0 commit comments

Comments
 (0)