We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e723bd commit 3c15cd0Copy full SHA for 3c15cd0
docs/recipes/WritingTests.md
@@ -330,15 +330,15 @@ import expect from 'expect';
330
import * as types from '../../constants/ActionTypes';
331
import singleDispatch from '../../middleware/singleDispatch';
332
333
-const fakeStore = fakeData => ({
+const createFakeStore = fakeData => ({
334
getState() {
335
return fakeData;
336
}
337
});
338
339
const dispatchWithStoreOf = (storeData, action) => {
340
let dispatched = null;
341
- const dispatch = singleDispatch(fakeStore(storeData))(actionAttempt => dispatched = actionAttempt);
+ const dispatch = singleDispatch(createFakeStore(storeData))(actionAttempt => dispatched = actionAttempt);
342
dispatch(action);
343
return dispatched;
344
};
0 commit comments