Skip to content

Commit

Permalink
Adress linter warnings (#3964)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Jul 18, 2023
1 parent 5e8d8e6 commit ffdaa71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -2119,11 +2119,11 @@
QUnit.test('#3961 - add events sends options.index that correspond to wrong index', function(assert) {
var numModels = 4;
var models = _.each(['a', 'b', 'c', 'd'], function(val) {
return new Backbone.Model({id:val});
return new Backbone.Model({id: val});
});
var collection = new Backbone.Collection(models);
models.shift(); // remove first element;
models.push(new Backbone.Model({id:'e'}));
models.push(new Backbone.Model({id: 'e'}));
collection.on('add', function(model, coll, options){
assert.equal(options.index, undefined);
});
Expand Down

0 comments on commit ffdaa71

Please sign in to comment.