Browse Source
Fix grammatical error in reference-test-renderer.md
main
Jeremy Kahn
7 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
|
|
@ -244,7 +244,7 @@ The children test instances of this test instance. |
|
|
|
|
|
|
|
You can pass `createNodeMock` function to `TestRenderer.create` as the option, which allows for custom mock refs. |
|
|
|
`createNodeMock` accepts the current element and should return a mock ref object. |
|
|
|
This is useful when you test a component rely on refs. |
|
|
|
This is useful when you test a component that relies on refs. |
|
|
|
|
|
|
|
```javascript |
|
|
|
import TestRenderer from 'react-test-renderer'; |
|
|
|