Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
it('should fail and return an action with the error', () => {
const action = new LoadTodoList();
const error = new Error('some error') as any;
const outcome = new TodoItemsLoadFailed(error);
actions = hot('-a', { a: action });
const response = cold('-#|', {}, error);
const expected = cold('--(b|)', { b: outcome });
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.