Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.