mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
adding demo for step 2-6
This commit is contained in:
10
step2-06/exercise/src/reducers/reducer.spec.ts
Normal file
10
step2-06/exercise/src/reducers/reducer.spec.ts
Normal 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'));
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user