Skip to content

Commit

Permalink
fix: Work by default with webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasBoll authored Oct 23, 2019
1 parent 6f7887c commit 8efe003
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Cypress.Commands.add('injectAxe', () => {
cy.window({ log: false }).then(window => {
const axe = require('axe-core')
window.eval(axe.source)
window.axe = axe
})
})

Expand Down Expand Up @@ -51,4 +51,4 @@ Cypress.Commands.add('checkA11y', (context, options, violationCallback) => {
function isEmptyObjectorNull(value) {
if (value == null) return true
return Object.entries(value).length === 0 && value.constructor === Object
}
}

0 comments on commit 8efe003

Please sign in to comment.