Skip to content

Commit 6f6363a

Browse files
author
Antoine Jaussoin
committed
Readme update again
1 parent 2c6f592 commit 6f6363a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ This examples is now actually using the `redux-saga` utility functions.
102102

103103
The important point to note here, is that Sagas **describe** what happens, and don't actually act on it.
104104
For example, an API will never be called, you don't have to mock it, when using `call`.
105+
Same thing for a selector, you don't need to mock the state when using `yield select(mySelector)`.
105106

106107
This makes testing very easy indeed.
107108

@@ -146,7 +147,7 @@ describe('When testing a very simple Saga', () => {
146147

147148
## Testing a complex Saga
148149

149-
This example deals with pretty much all use-cases for using Sagas, which involves calling an API, getting exceptions, and have some conditional logic based on some inputs.
150+
This example deals with pretty much all use-cases for using Sagas, which involves using a `select`or, `call`ing an API, getting exceptions, have some conditional logic based on some inputs and `put`ing new actions.
150151

151152
```javascript
152153
import sagaHelper from 'redux-saga-testing';

0 commit comments

Comments
 (0)