Created
March 13, 2017 13:04
-
-
Save giltayar/5e3b4f65cab459f833ffad42911cabff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before(function () { | |
global.document = jsdom(`<!doctype html><html><body><div id="container"/></div></body></html>`) | |
global.window = document.defaultView | |
}) | |
after(function () { | |
delete global.window | |
delete global.document | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment