Skip to content

Instantly share code, notes, and snippets.

@lydemann
Created February 19, 2019 06:20
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/5661e7b3f3c76763ddca6c3d261bf187 to your computer and use it in GitHub Desktop.
Save lydemann/5661e7b3f3c76763ddca6c3d261bf187 to your computer and use it in GitHub Desktop.
todo-list.reducers.spec.ts
describe('loadTodoItems', () => {
it('should return isLoading true', () => {
const initState = new TodoListInitState();
const loadTodoItemsAction = new GenericAction(TodoListActionTypes.LoadTodoList);
const newState = todoListReducers(initState, loadTodoItemsAction);
expect(newState.isLoading).toBe(true);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment