We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc308ac commit e131833Copy full SHA for e131833
1 file changed
src/Highlight.test.js
@@ -1,13 +1,13 @@
1
import React from 'react'
2
-import { findDOMNode } from 'react-dom'
+import { findDOMNode, render } from 'react-dom'
3
import expect from 'expect.js'
4
import Highlight from './Highlight'
5
6
describe('Highlight', () => {
7
const language = 'javascript'
8
const content = 'var foo = "Foo"; // comment'
9
const node = document.createElement('div')
10
- const highlight = React.render(
+ const highlight = render(
11
<Highlight language={language}>
12
{content}
13
</Highlight>,
0 commit comments