Skip to content

Instantly share code, notes, and snippets.

Created February 19, 2019 06:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
describe('todoItemsLoadFailed', () => {
it('should return isLoading false and error', () => {
const initState = new TodoListInitState();
const error = new Error('http error');
const loadTodoItemsAction = new GenericAction(TodoListActionTypes.TodoItemsLoadFailed, error);
const newState = todoListReducers(initState, loadTodoItemsAction);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment