|
@ -49,8 +49,8 @@ You can make the function pure by passing in a `document` object. This is really |
|
|
For example this works in Node.js: |
|
|
For example this works in Node.js: |
|
|
|
|
|
|
|
|
```js |
|
|
```js |
|
|
import jsdom from 'jsdom'; |
|
|
const jsdom = require('jsdom'); |
|
|
import whenDomReady from 'when-dom-ready'; |
|
|
const whenDomReady = require('when-dom-ready'); |
|
|
|
|
|
|
|
|
const doc = jsdom.jsdom('').defaultView.document; |
|
|
const doc = jsdom.jsdom('').defaultView.document; |
|
|
|
|
|
|
|
|