mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-15 18:34:06 +02:00
Add jsdom for headless testing.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
if (!global.window) {
|
||||
global.window = require('jsdom').jsdom().defaultView;
|
||||
}
|
||||
|
||||
const {test} = require('scar');
|
||||
const {pinHtml} = require('./util/pin');
|
||||
|
||||
|
Reference in New Issue
Block a user