Browse Source
fix test renderer's act() example (#2811)
`<renderer>.update()` doesn't return anything
main
Sunil Pai
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
content/docs/reference-test-renderer.md
|
|
@ -128,7 +128,7 @@ expect(root.toJSON()).toMatchSnapshot(); |
|
|
|
|
|
|
|
// update with some different props |
|
|
|
act(() => { |
|
|
|
root = root.update(<App value={2}/>); |
|
|
|
root.update(<App value={2}/>); |
|
|
|
}) |
|
|
|
|
|
|
|
// make assertions on root |
|
|
|