Skip to content

Instantly share code, notes, and snippets.

@lydemann
Last active February 23, 2019 14:51
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/6843bd49163e8ede59fee75c847d65a0 to your computer and use it in GitHub Desktop.
Save lydemann/6843bd49163e8ede59fee75c847d65a0 to your computer and use it in GitHub Desktop.
todo-list.selector.spec.ts
it('should return call the todoListSelectorFn', () => {
const store = jasmine.createSpyObj<Store<TodoListState>>('store', ['select']);
const todoListSelector = new TodoListSelector(store);
todoListSelector.getTodoList();
expect(store.select).toHaveBeenCalledWith(todoListSelectorFn);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment