[Pkg-javascript-commits] [backbone] 82/173: remove superfluous spaces from model test

Jonas Smedegaard dr at jones.dk
Wed Aug 31 07:44:05 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 12da1e3eb1c669fce16d14d1794c8b1687b2f2da
Author: Adam Krebs <amk528 at cs.nyu.edu>
Date:   Fri Dec 18 12:58:04 2015 -0500

    remove superfluous spaces from model test
---
 test/model.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/model.js b/test/model.js
index 1e31ec7..655712f 100644
--- a/test/model.js
+++ b/test/model.js
@@ -163,7 +163,7 @@
     assert.ok(!a.isNew(), "any defined ID is legal, negative or positive");
     a = new Backbone.Model({'foo': 1, 'bar': 2, 'baz': 3, 'id': 0});
     assert.ok(!a.isNew(), "any defined ID is legal, including zero");
-    assert.ok( new Backbone.Model({          }).isNew(), "is true when there is no id");
+    assert.ok(new Backbone.Model().isNew(), "is true when there is no id");
     assert.ok(!new Backbone.Model({'id': 2}).isNew(), "is false for a positive integer");
     assert.ok(!new Backbone.Model({'id': -5}).isNew(), "is false for a negative integer");
   });

-- 
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