1
0
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:
Lars Jung
2016-07-22 21:19:10 +02:00
parent 1d4b4b8a02
commit a6994150ca
19 changed files with 25 additions and 31 deletions

View File

@@ -1,3 +1,7 @@
if (!global.window) {
global.window = require('jsdom').jsdom().defaultView;
}
const {test} = require('scar');
const {pinHtml} = require('./util/pin');