Skip to content

Commit

Permalink
Added coverage ignore to final else branch of matches()
Browse files Browse the repository at this point in the history
  • Loading branch information
JJWesterkamp committed Apr 11, 2021
1 parent 28ffff3 commit d7a115a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/matches.ts
Expand Up @@ -29,6 +29,7 @@ export function matches(element: XBrowserElement, selector: string): boolean {
if (isFunction(element.mozMatchesSelector)) return element.mozMatchesSelector(selector)
if (isFunction(element.msMatchesSelector)) return element.msMatchesSelector(selector)
if (isFunction(element.oMatchesSelector)) return element.oMatchesSelector(selector)
/* istanbul ignore else */
if (isFunction(element.webkitMatchesSelector)) return element.webkitMatchesSelector(selector)

/* istanbul ignore next */
Expand Down

0 comments on commit d7a115a

Please sign in to comment.