Skip to content

Commit

Permalink
Update packages/pretty-format/src/plugins/DOMElement.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Simen Bekkhus <sbekkhus91@gmail.com>
  • Loading branch information
pikou1995 and SimenB committed Mar 13, 2021
1 parent a05a020 commit d9eee82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pretty-format/src/plugins/DOMElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const ELEMENT_REGEXP = /^((HTML|SVG)\w*)?Element$/;
const testHasAttribute = (val: any) => {
try {
return typeof val.hasAttribute === 'function' && val.hasAttribute('is');
} catch (_) {
} catch {
return false;
}
};
Expand Down

0 comments on commit d9eee82

Please sign in to comment.