Skip to content

Update jsdom to the latest version 🚀 #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"eslint-plugin-react": "^7.10.0",
"fbjs": "^0.8.17",
"jest": "^23.4.2",
"jsdom": "^9.8.3",
"jsdom": "^12.0.0",
"prettier": "^1.14.0",
"prop-types": "^15.6.2",
"react": "^16.4.2",
Expand Down
4 changes: 2 additions & 2 deletions test/components/ThemeProvider.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import React, { Component } from 'react'
import PropTypes from 'prop-types'
import TestUtils from 'react-dom/test-utils'
import { ThemeProvider } from '../../src/index'
import { jsdom } from 'jsdom'
import { JSDOM } from 'jsdom'

const documentDom = jsdom('<!doctype html><html><body></body></html>')
const documentDom = new JSDOM(`<!doctype html><html><body></body></html>`)
beforeEach(() => {
global.document = documentDom
global.window = document.defaultView
Expand Down
4 changes: 2 additions & 2 deletions test/components/themr.spec.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React, { Children, Component } from 'react'
import PropTypes from 'prop-types'
import { jsdom } from 'jsdom'
import { JSDOM } from 'jsdom'
import TestUtils from 'react-dom/test-utils'
import sinon from 'sinon'
import { render } from 'react-dom'
import shallowEqual from 'fbjs/lib/shallowEqual'
import { themr, themeable } from '../../src/index'

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

describe('Themr decorator function', () => {
class Passthrough extends Component {
Expand Down