Skip to content

Commit 4b0df85

Browse files
committed
Merge pull request #4 from TristanWright/patch-1
README typos
2 parents 53598db + ff4f2d5 commit 4b0df85

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ expect(fetchData()).withState({/*custom state*/}).toDispatchActions(expectedActi
6868
```
6969
7070
### Allows to avoid re-testing nested action creators
71-
It allows to test only actions that needs to be tested.
71+
It allows to test only actions that need to be tested.
7272
7373
**Example:**
7474
We have two actions (A, B). Each one makes async http requests.
75-
Action A makes request and if result is successful it triggers Action B.
76-
Action B is also used as independent action.
75+
Action A makes a request and if the result is successful it triggers Action B.
76+
Action B is also used as an independent action.
7777
Action B can be tested separately.
78-
We don't need to test it again in Action A.
78+
Therefore, we don't need to test it again in Action A.
7979
8080
Actions:
8181
```javascript
@@ -195,7 +195,7 @@ assertions.toDispatchActionsWithState(/**/);
195195
#### toDispatchActions
196196
> `toDispatchActions(action, expectedActions, callback)`
197197
198-
Asserts that when given `action` is dispatched it will dispatch `expectedActions`. `action` can be plain object (action) or function (action creator). `expectedActions` can be can be plain object (action) or function (action creator) or array of objects/functions.
198+
Asserts that when given `action` is dispatched it will dispatch `expectedActions`. `action` can be a plain object (action) or a function (action creator). `expectedActions` can be can be a plain object (action), a function (action creator), or an array of objects/functions.
199199
200200
```js
201201
toDispatchActions(testActionCreator(), [{ type: 'MY_ACTION_START' }], callback);
@@ -234,7 +234,7 @@ registerAssertions();
234234
235235
> `assert.isDispatching(action, expectedActions, callback)`
236236
237-
Asserts that when given `action` is dispatched it will dispatch `expectedActions`. `action` can be plain object (action) or function (action creator). `expectedActions` can be can be plain object (action) or function (action creator) or array of objects/functions.
237+
Asserts that when given `action` is dispatched it will dispatch `expectedActions`. `action` can be a plain object (action) or a function (action creator). `expectedActions` can be can be a plain object (action), a function (action creator), or an array of objects/functions.
238238
239239
```js
240240
expect(myActionCreator())
@@ -296,7 +296,7 @@ registerAssertions();
296296
297297
> `expect(action).toDispatchActions(expectedActions, callback)`
298298
299-
Asserts that when given `action` is dispatched it will dispatch `expectedActions`. `action` can be plain object (action) or function (action creator). `expectedActions` can be can be plain object (action) or function (action creator) or array of objects/functions.
299+
Asserts that when given `action` is dispatched it will dispatch `expectedActions`. `action` can be a plain object (action) or a function (action creator). `expectedActions` can be can be a plain object (action), a function (action creator), or an array of objects/functions.
300300
301301
```js
302302
expect(myActionCreator())
@@ -336,7 +336,7 @@ registerAssertions();
336336
337337
> `expect(action).to.dispatchActions(expectedActions, callback)`
338338
339-
Asserts that when given `action` is dispatched it will dispatch `expectedActions`. `action` can be plain object (action) or function (action creator). `expectedActions` can be can be plain object (action) or function (action creator) or array of objects/functions.
339+
Asserts that when given `action` is dispatched it will dispatch `expectedActions`. `action` can be a plain object (action) or a function (action creator). `expectedActions` can be can be a plain object (action), a function (action creator), or an array of objects/functions.
340340
341341
```js
342342
expect(myActionCreator())
@@ -377,7 +377,7 @@ registerAssertions();
377377
> `should(action).dispatchActions(expectedActions, callback)`
378378
> `action.should.dispatchActions(expectedActions, callback)`
379379
380-
Asserts that when given `action` is dispatched it will dispatch `expectedActions`. `action` can be plain object (action) or function (action creator). `expectedActions` can be can be plain object (action) or function (action creator) or array of objects/functions.
380+
Asserts that when given `action` is dispatched it will dispatch `expectedActions`. `action` can be a plain object (action) or a function (action creator). `expectedActions` can be can be a plain object (action), a function (action creator), or an array of objects/functions.
381381
382382
```js
383383
should(myActionCreator())
@@ -413,4 +413,4 @@ myActionCreator().should
413413
myActionCreator().should
414414
.with.state({ property: 'value' })
415415
.dispatchActions({ type: 'MY_ACTION_START' }, callback);
416-
```
416+
```

0 commit comments

Comments
 (0)