Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function accessible (element = document.body, options) {
if (isElement(element)) {
return runAxeCheck(element, options)
} else {
throw new Error('[ui-test-utils] accessibility check can only run on a single, valid DOM Element!')
}
}