You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/recipes/WritingTests.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ and run `npm test` to run it once, or `npm run test:watch` to test on every file
29
29
30
30
### Action Creators
31
31
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.
33
33
34
34
#### Example
35
35
@@ -62,7 +62,7 @@ describe('actions', () => {
62
62
63
63
### Reducers
64
64
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.
66
66
67
67
#### Example
68
68
@@ -265,4 +265,4 @@ Call it before running any component tests. Note this is a dirty workaround, and
265
265
266
266
- [jsdom](https://github.com/tmpvar/jsdom): An in-JavaScript implementation of the DOM. Jsdom allows us to run the tests without browser.
267
267
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