Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Merge pull request #205 from vkrol/patch-1
Fix small typos in README.MD
  • Loading branch information
mattruby committed Feb 16, 2017
2 parents 20bdcb3 + 537fed0 commit ac9ff4182af561975e1b1414851a4b27e9ee0a2d
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 `wrappedComponent` instead: `shallow(<Person.wrappedComponent />)`

## FAQ

0 comments on commit ac9ff41

Please sign in to comment.