Skip to content

Commit b663647

Browse files
committed
Minor help text improvements
1 parent f8359b2 commit b663647

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/recipes/WritingTests.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ and run `npm test` to run it once, or `npm run test:watch` to test on every file
2929

3030
### Action Creators
3131

32-
In Redux action creators are functions which return plain objects. When testing action creators we want to test whether the correct action creator was called and also whether the right action was returned.
32+
In Redux, action creators are functions which return plain objects. When testing action creators we want to test whether the correct action creator was called and also whether the right action was returned.
3333

3434
#### Example
3535

@@ -62,7 +62,7 @@ describe('actions', () => {
6262
6363
### Reducers
6464
65-
Reducer should return the new state after applying action on the previous state. And that’s the behavior tested below.
65+
A reducer should return the new state after applying the action to the previous state, and that’s the behavior tested below.
6666
6767
#### Example
6868
@@ -265,4 +265,4 @@ Call it before running any component tests. Note this is a dirty workaround, and
265265
266266
- [jsdom](https://github.com/tmpvar/jsdom): An in-JavaScript implementation of the DOM. Jsdom allows us to run the tests without browser.
267267
268-
- [Shallow rendering](http://facebook.github.io/react/docs/test-utils.html#shallow-rendering): The main idea of shallow rendering is to instantiate a component and get the result of its `render` method just a single level deep instead of rendering into a DOM. The result of shallow rendering is a [ReactElement](https://facebook.github.io/react/docs/glossary.html#react-elements) that means it is possible to access its children, props and test if it works as expected.
268+
- [Shallow rendering](http://facebook.github.io/react/docs/test-utils.html#shallow-rendering): The main idea of shallow rendering is to instantiate a component and get the result of its `render` method just a single level deep instead of rendering into a DOM. The result of shallow rendering is a [ReactElement](https://facebook.github.io/react/docs/glossary.html#react-elements). That means it is possible to access its children, props and test if it works as expected.

0 commit comments

Comments
 (0)