Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Update README.md
  • Loading branch information
vkrol committed Feb 16, 2017
1 parent 20bdcb3 commit c6f1dd45a59bc0a8cf10f6f32f5546ed28a761b2
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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
@@ -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

0 comments on commit c6f1dd4

Please sign in to comment.