Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vkrol committed Feb 16, 2017
1 parent 20bdcb3 commit c6f1dd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -340,7 +340,7 @@ Make sure to mark `userStore` as optional property. It should not (necessarily)

#### Testing store injection

It is allowed to pass any declared stored in directly as property as well. This makes it easy to set up individual component tests without a provider.
It is allowed to pass any declared store in directly as property as well. This makes it easy to set up individual component tests without a provider.

So if you have in your app something like:
```javascript
Expand All @@ -358,7 +358,7 @@ const mountedComponent = mount(
```

Bear in mind that using shallow rendering won't provide any useful results when testing injected components; only the injector will be rendered.
To test with shallow rendering, instantiate the `.wrappedComponent instead:`: `shallow(<Person.wrappedComponent />)`
To test with shallow rendering, instantiate the wrapped сomponent instead: `shallow(<Person.wrappedComponent />)`

## FAQ

Expand Down

0 comments on commit c6f1dd4

Please sign in to comment.