Created
February 20, 2019 07:00
-
-
Save lydemann/b8b14b39617b8a00884e5c2b0b843bf9 to your computer and use it in GitHub Desktop.
todo-list.actions.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('loadTodoList', () => { | |
it('should dispatch load todolist action', () => { | |
const expectedAction = new LoadTodoList(); | |
const store = jasmine.createSpyObj<Store<TodoListState>>('store', ['dispatch']); | |
const todoListActions = new TodoListActions(store); | |
todoListActions.loadTodoList(); | |
expect(store.dispatch).toHaveBeenCalledWith(expectedAction); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment