Skip to content

Instantly share code, notes, and snippets.

@lydemann
Last active March 10, 2019 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lydemann/a534b9e0ab4ae7144bada6c765c11ce1 to your computer and use it in GitHub Desktop.
Save lydemann/a534b9e0ab4ae7144bada6c765c11ce1 to your computer and use it in GitHub Desktop.
todo-list.reducers.spec.ts
describe('default', () => {
it('should return init state', () => {
const noopAction = new GenericAction('noop' as TodoListActionTypes);
const newState = todoListReducers(undefined, noopAction);
const initState = new TodoListInitState();
expect(newState).toEqual(initState);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment