Skip to content

Commit 3c15cd0

Browse files
committed
docs: rename fakeStore to createFakeStore
1 parent 0e723bd commit 3c15cd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/recipes/WritingTests.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,15 +330,15 @@ import expect from 'expect';
330330
import * as types from '../../constants/ActionTypes';
331331
import singleDispatch from '../../middleware/singleDispatch';
332332

333-
const fakeStore = fakeData => ({
333+
const createFakeStore = fakeData => ({
334334
getState() {
335335
return fakeData;
336336
}
337337
});
338338

339339
const dispatchWithStoreOf = (storeData, action) => {
340340
let dispatched = null;
341-
const dispatch = singleDispatch(fakeStore(storeData))(actionAttempt => dispatched = actionAttempt);
341+
const dispatch = singleDispatch(createFakeStore(storeData))(actionAttempt => dispatched = actionAttempt);
342342
dispatch(action);
343343
return dispatched;
344344
};

0 commit comments

Comments
 (0)