File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -492,9 +492,9 @@ Convenience methods for firing DOM events. Check out
492
492
for a full list as well as default ` eventProperties ` .
493
493
494
494
` ` ` javascript
495
- import {renderIntoDocument , fireEvent } from ' react-testing-library'
495
+ import {render , fireEvent } from ' react-testing-library'
496
496
497
- const {getElementByText } = renderIntoDocument (<Form />)
497
+ const {getElementByText } = render (<Form />)
498
498
499
499
// similar to the above example
500
500
// click will bubble for React to see it
@@ -511,9 +511,9 @@ won't work like it does with `Simulate`. You need to change the element's
511
511
` value ` property, then use ` fireEvent ` to fire a ` change ` DOM event.
512
512
513
513
` ` ` javascript
514
- import {renderIntoDocument , fireEvent } from ' react-testing-library'
514
+ import {render , fireEvent } from ' react-testing-library'
515
515
516
- const {getByLabelText } = renderIntoDocument (<Form />)
516
+ const {getByLabelText } = render (<Form />)
517
517
518
518
const comment = getByLabelText (' Comment' )
519
519
comment .value = ' Great advice, I love your posts!'
You can’t perform that action at this time.
0 commit comments