Skip to content

Commit ac20109

Browse files
authored
Fix Testing Library example (#1904)
1 parent 6108389 commit ac20109

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/guide/scaling-up/testing.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,12 @@ Component tests should focus on the component's public interfaces rather than in
133133
<div class="testing-library-api">
134134

135135
```js
136-
render(Stepper, {
136+
const { getByText } = render(Stepper, {
137137
props: {
138138
max: 1
139139
}
140140
})
141141

142-
const { getByText } = render(Component)
143-
144142
getByText('0') // Implicit assertion that "0" is within the component
145143

146144
const button = getByText('increment')

0 commit comments

Comments
 (0)