addyosmani/backbone-fundamentals — pull request #428 by KevinTCoughlin (2013-05-02 20:53:51+00:00)
Title: Added missing parenthesis in StoreList sanity check QUnit test module that prevented code from working. See added parenthesis on last this.last.add line.

Parenthesis is missing in last list.add of new Store and code does not work. Added missing Parenthesis.

// Define a group for our tests
module( 'StoreList sanity check', {
setup: function() {
this.list = new StoreList;
this.list.add(new Store({ name: 'Costcutter' }));
this.list.add(new Store({ name: 'Target' }));
this.list.add(new Store({ name: 'Walmart' }));
this.list.add(new Store({ name: 'Barnes & Noble' })); // Here
},
teardown: function() {
window.errors = null;
}
});