[Pkg-javascript-commits] [backbone] 89/173: Enable ESLint semicolons for tests

Jonas Smedegaard dr at jones.dk
Wed Aug 31 07:44:06 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 3dbdfab21bc28024474340b4dc9c73a55eb4584a
Author: Jordan Eldredge <jordan at jordaneldredge.com>
Date:   Wed Dec 16 08:11:15 2015 -0800

    Enable ESLint semicolons for tests
---
 test/.eslintrc     | 1 -
 test/collection.js | 4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/test/.eslintrc b/test/.eslintrc
index 6286513..7436d43 100644
--- a/test/.eslintrc
+++ b/test/.eslintrc
@@ -20,7 +20,6 @@
     "no-throw-literal": 0,
     "no-undefined": 0,
     "quote-props": 0,
-    "semi": 0,
     "space-before-function-paren": 0
   }
 }
diff --git a/test/collection.js b/test/collection.js
index ee65338..17acf72 100644
--- a/test/collection.js
+++ b/test/collection.js
@@ -676,8 +676,8 @@
     assert.equal(col.map(function(model){ return model.get('label'); }).join(' '), 'a b c d');
     assert.equal(col.some(function(model){ return model.id === 100; }), false);
     assert.equal(col.some(function(model){ return model.id === 0; }), true);
-    assert.equal(col.reduce(function(a, b) {return a.id > b.id ? a : b}).id, 3);
-    assert.equal(col.reduceRight(function(a, b) {return a.id > b.id ? a : b}).id, 3);
+    assert.equal(col.reduce(function(a, b) {return a.id > b.id ? a : b;}).id, 3);
+    assert.equal(col.reduceRight(function(a, b) {return a.id > b.id ? a : b;}).id, 3);
     assert.equal(col.indexOf(b), 1);
     assert.equal(col.size(), 4);
     assert.equal(col.rest().length, 3);

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