Created
April 27, 2017 23:38
-
-
Save brettjonesdev/66d05b105459e9880e9bc699f58a7b9e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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