Skip to content

Commit

Permalink
Add jsdom instance reference to global
Browse files Browse the repository at this point in the history
Will allow to access jsdom API (rstacruz#26).
  • Loading branch information
Li0liQ committed Jul 17, 2017
1 parent 371c36a commit a105dc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ module.exports = function globalJsdom (html, options) {
global[key] = window[key]
})

global.jsdom = document
global.document = window.document
global.window = window
window.console = global.console
Expand Down

0 comments on commit a105dc6

Please sign in to comment.