[Pkg-javascript-commits] [backbone] 137/173: fix failing linting tests

Jonas Smedegaard dr at jones.dk
Wed Aug 31 07:44:13 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository backbone.

commit 47fb04a37326a1850c764733cdc5d21784b61c05
Author: Craig Martin <cmartin at onshift.com>
Date:   Thu Feb 4 15:15:49 2016 -0500

    fix failing linting tests
---
 test/collection.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/test/collection.js b/test/collection.js
index 26c1f4a..d8591a1 100644
--- a/test/collection.js
+++ b/test/collection.js
@@ -1739,14 +1739,14 @@
     assert.equal(c2.modelId(m.attributes), void 0);
   });
 
-  QUnit.test("#3039 #3951: adding at index fires with correct at", function(assert) {
+  QUnit.test('#3039 #3951: adding at index fires with correct at', function(assert) {
     assert.expect(4);
-    var col = new Backbone.Collection([{at: 0}, {at: 4}]);
-    col.on('add', function(model, col, options) {
+    var collection = new Backbone.Collection([{at: 0}, {at: 4}]);
+    collection.on('add', function(model, coll, options) {
       assert.equal(model.get('at'), options.index);
     });
-    col.add([{at: 1}, {at: 2}, {at: 3}], {at: 1});
-    col.add({at: 5}, {at: 10});
+    collection.add([{at: 1}, {at: 2}, {at: 3}], {at: 1});
+    collection.add({at: 5}, {at: 10});
   });
 
   QUnit.test('#3039: index is not sent when at is not specified', function(assert) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git



More information about the Pkg-javascript-commits mailing list