Luke Childs
9 years ago
1 changed files with 5 additions and 1 deletions
@ -1,4 +1,8 @@ |
|||
global.window = require('jsdom').jsdom('<html><body></body></html>').defaultView; |
|||
Object.keys(window).forEach(prop => !global[prop] && (global[prop] = window[prop])); |
|||
Object.keys(window).forEach(function(prop) { |
|||
if(!global[prop]) { |
|||
global[prop] = window[prop]; |
|||
} |
|||
}); |
|||
|
|||
module.exports = window; |
|||
|
Loading…
Reference in new issue