Files
frontend-bootcamp/step2-06/exercise/src/reducers/reducer.spec.ts
Elizabeth Craig 0d1160145a More day 2 updates
2019-02-28 22:29:28 -08:00

20 lines
574 B
TypeScript

import { createStore } from 'redux';
import { reducer } from '.';
import { actions } from '../actions';
describe('reducers', () => {
it('should add items', () => {
// 1. Use Redux's createStore() to create a store. Pass in a reducer along with the initial state.
//
// 2. Call store.dispatch() with some action messages to indicate the kind of
// action to perform (in this case, addTodo)
//
// 3. Assert with expect() on the resultant store.getState().todos
});
// Tests left for you to write:
// - remove
// - clear
// - complete
});