Skip to content

Commit

Permalink
Fix small types in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
KELiON committed Mar 22, 2016
1 parent 76f222f commit 9732ca5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -83,7 +83,7 @@ function* fetchUser(action) {
const user = yield call(Api.fetchUser, action.payload.userId);
yield put({type: "USER_FETCH_SUCCEEDED", user: user});
} catch (e) {
yield put({type: "USER_FETCH_FAILED",message: e.message});
yield put({type: "USER_FETCH_FAILED", message: e.message});
}
}

Expand Down
2 changes: 1 addition & 1 deletion docs/basics/DeclarativeEffects.md
Expand Up @@ -54,7 +54,7 @@ with the right arguments (`'/products'` in our case).
Mocks make testing more difficult and less reliable. On the other hand, functions that simply return values are
easier to test, since we can use a simple `equal()` to check the result. This is the way to write the most reliable tests.
Not convinced ? I encourage you to read [Eric Elliott's article](https://medium.com/javascript-scene/what-every-unit-test-needs-f6cd34d9836d#.4ttnnzpgc):
Not convinced? I encourage you to read [Eric Elliott's article](https://medium.com/javascript-scene/what-every-unit-test-needs-f6cd34d9836d#.4ttnnzpgc):
>(...)`equal()`, by nature answers the two most important questions every unit test must answer,
but most don’t:
Expand Down
3 changes: 1 addition & 2 deletions docs/introduction/BeginnerTutorial.md
Expand Up @@ -63,7 +63,7 @@ In order to run our Saga, we need to
- connect the Saga middleware to the Redux store


We will makes the changes to `main.js`
We will make the changes to `main.js`

```javascript
// ...
Expand Down Expand Up @@ -217,7 +217,6 @@ test('incrementAsync Saga test', (assert) => {
```

Since `incrementAsync` is a Generator function, when we run it outside the middleware,
we get a Generator object. A Generator object is an object which has a `next` method.
Each time you invoke `next` on the generator, you get an object of the following shape

```javascript
Expand Down

0 comments on commit 9732ca5

Please sign in to comment.