Skip to content

Commit e131833

Browse files
committed
Fixed test warning by using react-dom render
1 parent cc308ac commit e131833

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Highlight.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import React from 'react'
2-
import { findDOMNode } from 'react-dom'
2+
import { findDOMNode, render } from 'react-dom'
33
import expect from 'expect.js'
44
import Highlight from './Highlight'
55

66
describe('Highlight', () => {
77
const language = 'javascript'
88
const content = 'var foo = "Foo"; // comment'
99
const node = document.createElement('div')
10-
const highlight = React.render(
10+
const highlight = render(
1111
<Highlight language={language}>
1212
{content}
1313
</Highlight>,

0 commit comments

Comments
 (0)