Skip to content

Commit a3efd00

Browse files
author
Kent C. Dodds
authored
Update example-intro.md
1 parent 746ed8b commit a3efd00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,9 @@ export default function Fetch({url}) {
150150
</div>
151151
)
152152
}
153-
154153
```
154+
155+
```jsx
155156
expect(axiosMock.get).toHaveBeenCalledTimes(1)
156157
expect(axiosMock.get).toHaveBeenCalledWith(url)
157158
expect(getByTestId('greeting-text')).toHaveTextContent('hello there')

0 commit comments

Comments
 (0)