[Pkg-javascript-commits] [backbone] 141/173: rename at => val in test to be clearer

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 8d8b854abfcf543ad13a9bcfe3b1225af90e4e94
Author: Adam Krebs <amk528 at cs.nyu.edu>
Date:   Thu Feb 4 17:16:06 2016 -0500

    rename at => val in test to be clearer
---
 test/collection.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/collection.js b/test/collection.js
index d1f0a95..8a8d536 100644
--- a/test/collection.js
+++ b/test/collection.js
@@ -1736,12 +1736,12 @@
 
   QUnit.test('#3039 #3951: adding at index fires with correct at', function(assert) {
     assert.expect(4);
-    var collection = new Backbone.Collection([{at: 0}, {at: 4}]);
+    var collection = new Backbone.Collection([{val: 0}, {val: 4}]);
     collection.on('add', function(model, coll, options) {
-      assert.equal(model.get('at'), options.index);
+      assert.equal(model.get('val'), options.index);
     });
-    collection.add([{at: 1}, {at: 2}, {at: 3}], {at: 1});
-    collection.add({at: 5}, {at: 10});
+    collection.add([{val: 1}, {val: 2}, {val: 3}], {at: 1});
+    collection.add({val: 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