mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-23 19:47:04 -04:00
Add jsdom for headless testing.
This commit is contained in:
parent
1d4b4b8a02
commit
a6994150ca
19 changed files with 25 additions and 31 deletions
|
@ -1,3 +1,7 @@
|
|||
if (!global.window) {
|
||||
global.window = require('jsdom').jsdom().defaultView;
|
||||
}
|
||||
|
||||
const {test} = require('scar');
|
||||
const {pinHtml} = require('./util/pin');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue