Content-Length: 265623 | pFad | http://github.com/stdavis/testing-library-docs/commit/bd799de4dbdce1cdcee0e76ea42221bab3f24ab9

53 update incompatible code excerpt (#591) · stdavis/testing-library-docs@bd799de · GitHub
Skip to content

Commit bd799de

Browse files
authored
update incompatible code excerpt (testing-library#591)
1 parent bcd131e commit bd799de

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/react-testing-library/example-intro.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,10 @@ test('handlers server error', async () => {
131131

132132
### Arrange
133133

134-
The [`render`](./api#render) method renders a React element into the DOM and
135-
returns utility functions for testing the component.
134+
The [`render`](./api#render) method renders a React element into the DOM.
136135

137136
```jsx
138-
const { container, asFragment } = render(<Fetch url="/greeting" />)
137+
render(<Fetch url="/greeting" />)
139138
```
140139

141140
### Act

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/stdavis/testing-library-docs/commit/bd799de4dbdce1cdcee0e76ea42221bab3f24ab9

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy