Skip to content

Commit ff4f2d5

Browse files
committed
other README typos
1 parent 8963795 commit ff4f2d5

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Assertions for redux actions testing.
33

44
This library adds assertions for [redux actions](http://redux.js.org/docs/advanced/AsyncActions.html) testing.
5-
It uses [redux-mock-store](https://github.com/arnaudbenard/redux-mock-store) to mock redux store.
5+
It use [redux-mock-store](https://github.com/arnaudbenard/redux-mock-store) to mock redux store.
66

77
[![build status](https://img.shields.io/travis/dmitry-zaets/redux-actions-assertions/master.svg?style=flat-square)](https://travis-ci.org/dmitry-zaets/redux-actions-assertions)
88
[![npm version](https://img.shields.io/npm/v/redux-actions-assertions.svg?style=flat-square)](https://www.npmjs.com/package/redux-actions-assertions)
@@ -18,7 +18,7 @@ It uses [redux-mock-store](https://github.com/arnaudbenard/redux-mock-store) to
1818
- [expect.js](#expectjs)
1919
- [should](#should)
2020

21-
If you have not found the assertion framework/library that you are using - you can use [pure javascript assertions](#javascript) or create an issue.
21+
If you have not found assertion framework/library that you are using - you can use [pure javascript assertion](#javascript) or create an issue.
2222

2323
### Simplifies initial setup
2424
It provides singe-time global configuration for middlewares and initial store state.
@@ -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())

0 commit comments

Comments
 (0)