Skip to content

Instantly share code, notes, and snippets.

@lydemann
Last active February 23, 2019 14:55
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/4c17dddb216f45dbfe008306b0ba7ea1 to your computer and use it in GitHub Desktop.
Save lydemann/4c17dddb216f45dbfe008306b0ba7ea1 to your computer and use it in GitHub Desktop.
todo-list.selector.spec.ts
it('should return the todoList', () => {
const todos = [new TODOItem('todo1', 'todo1')];
const todoListState = {
todos: todos,
isLoading: true
} as TodoListState;
expect(todoListSelectorFn.projector(todoListState)).toEqual(todos);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment