Skip to content

Commit 2c85f35

Browse files
Merge pull request #31 from FriendsOfReactJS/greenkeeper/jsdom-12.0.0
Update jsdom to the latest version 🚀
2 parents 6aab8ea + 565870b commit 2c85f35

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"eslint-plugin-react": "^7.10.0",
4343
"fbjs": "^0.8.17",
4444
"jest": "^23.4.2",
45-
"jsdom": "^9.8.3",
45+
"jsdom": "^12.0.0",
4646
"prettier": "^1.14.0",
4747
"prop-types": "^15.6.2",
4848
"react": "^16.4.2",

Diff for: test/components/ThemeProvider.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import React, { Component } from 'react'
22
import PropTypes from 'prop-types'
33
import TestUtils from 'react-dom/test-utils'
44
import { ThemeProvider } from '../../src/index'
5-
import { jsdom } from 'jsdom'
5+
import { JSDOM } from 'jsdom'
66

7-
const documentDom = jsdom('<!doctype html><html><body></body></html>')
7+
const documentDom = new JSDOM(`<!doctype html><html><body></body></html>`)
88
beforeEach(() => {
99
global.document = documentDom
1010
global.window = document.defaultView

Diff for: test/components/themr.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import React, { Children, Component } from 'react'
22
import PropTypes from 'prop-types'
3-
import { jsdom } from 'jsdom'
3+
import { JSDOM } from 'jsdom'
44
import TestUtils from 'react-dom/test-utils'
55
import sinon from 'sinon'
66
import { render } from 'react-dom'
77
import shallowEqual from 'fbjs/lib/shallowEqual'
88
import { themr, themeable } from '../../src/index'
99

10-
const documentDom = jsdom('<!doctype html><html><body></body></html>')
10+
const documentDom = new JSDOM(`<!doctype html><html><body></body></html>`)
1111

1212
describe('Themr decorator function', () => {
1313
class Passthrough extends Component {

0 commit comments

Comments
 (0)