-
-
Save darlanmendonca/6182e9cc14f6453342809e14e5c9cec9 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
| const {JSDOM: Dom} = require('jsdom') | |
| 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