adding demo for step 2-6

This commit is contained in:
Ken
2019-02-19 14:46:48 -08:00
parent abb8318252
commit 2b41788cc2
15 changed files with 285 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
describe('reducers', () => {
it('should listen to addTodo message', () => {
const store = createStoreWithDevTool(reducer, {});
console.log(store.getState());
store.dispatch(actions.addTodo('hello'));
store.dispatch(actions.addTodo('world'));
});
});