We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea52ca4 commit a04f2daCopy full SHA for a04f2da
packages/pretty-format/src/plugins/DOMElement.ts
@@ -32,8 +32,7 @@ const testHasAttribute = (val: any) => {
32
33
const isCustomElement = (val: any) => {
34
const { tagName } = val
35
- return (typeof tagName === 'string' && tagName.includes('-')) ||
36
- testHasAttribute(val);
+ return ((typeof tagName === 'string' && tagName.includes('-')) || testHasAttribute(val));
37
}
38
39
const testNode = (val: any) => {
0 commit comments