File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
docs/react-testing-library Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -52,17 +52,17 @@ test('renders a message', () => {
52
52
53
53
## ` render ` Options
54
54
55
- You wont often need to specify options , but if you ever do , here are the
55
+ You won ' t often need to specify options, but if you ever do, here are the
56
56
available options which you could provide as a second argument to ` render ` .
57
57
58
58
### ` container `
59
59
60
- By default , ` React Testing Library ` will create a ` div ` and append that div to
61
- the ` document.body ` and this is where your react component will be rendered . If
60
+ By default , ` React Testing Library ` will create a ` div ` and append that ` div ` to
61
+ the ` document.body ` and this is where your React component will be rendered . If
62
62
you provide your own HTMLElement ` container ` via this option , it will not be
63
63
appended to the ` document.body ` automatically .
64
64
65
- For Example : If you are unit testing a ` tablebody ` element , it cannot be a child
65
+ For example : If you are unit testing a ` tablebody ` element , it cannot be a child
66
66
of a ` div ` . In this case , you can specify a ` table ` as the render ` container ` .
67
67
68
68
` ` ` jsx
You can’t perform that action at this time.
0 commit comments