overleaf/services/web/public/js/ace/test/mockdom.js
2014-02-12 10:23:40 +00:00

10 lines
361 B
JavaScript
Executable file

"use strict";
var dom = require('jsdom/lib/jsdom/level2/html').dom.level2.html;
var browser = require('jsdom/lib/jsdom/browser/index').windowAugmentation(dom);
global.document = browser.document;
global.window = browser.window;
global.self = browser.self;
global.navigator = browser.navigator;
global.location = browser.location;