Skip to content

Instantly share code, notes, and snippets.

@brettjonesdev
Created April 27, 2017 23:38
Show Gist options
  • Save brettjonesdev/66d05b105459e9880e9bc699f58a7b9e to your computer and use it in GitHub Desktop.
Save brettjonesdev/66d05b105459e9880e9bc699f58a7b9e to your computer and use it in GitHub Desktop.
it('should be able to select a TodoModel', () => {
const collection = new TodoCollection();
const selectedTodos = new TodoCollection();
const listView = new ListView({collection, selectedTodos});
const model = new TodoModel();
listView.select(model); // Works great!
expect(listView.isSelected(model)).toBe(true);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment