-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(is-visible): do not error if window.Node does not exist (#3168)
* fix(is-visible): do not error if window.Node does not exist * circle * Update test/test-virtual-rules.js Co-authored-by: Wilco Fiers <[email protected]> Co-authored-by: Wilco Fiers <[email protected]>
- Loading branch information
1 parent
ad4b165
commit 4046087
Showing
4 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
var path = require('path'); | ||
var assert = require('chai').assert; | ||
var glob = require('glob'); | ||
var axe = require('../axe'); | ||
|
||
var files = glob.sync(path.join(__dirname, 'integration/virtual-rules/*.js')); | ||
|
||
before(function() { | ||
global.axe = axe; | ||
global.assert = assert; | ||
}); | ||
|
||
after(function() { | ||
delete global.axe; | ||
delete global.assert; | ||
}); | ||
|
||
describe('virtual-rule node tests', function() { | ||
files.forEach(function(file) { | ||
// load the test file and run with global axe and assert now defined | ||
require(file); | ||
}); | ||
}); |