From 1da280c79d22b449d510eeea4a8e94978136a8a8 Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Tue, 10 Nov 2020 14:33:35 -0500 Subject: [PATCH] Enable func-call-spacing eslint rule --- .eslintrc | 1 + test/spec/services/maprules.js | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.eslintrc b/.eslintrc index 2e16fb51f..c7a7c3335 100644 --- a/.eslintrc +++ b/.eslintrc @@ -28,6 +28,7 @@ "default-param-last": "error", "dot-notation": "error", "eqeqeq": ["error", "smart"], + "func-call-spacing": ["warn", "never"], "grouped-accessor-pairs": "error", "indent": ["off", 4], "keyword-spacing": "error", diff --git a/test/spec/services/maprules.js b/test/spec/services/maprules.js index 60362c022..93a76a283 100644 --- a/test/spec/services/maprules.js +++ b/test/spec/services/maprules.js @@ -234,12 +234,12 @@ describe('maprules', function() { }); }); describe('greaterThan', function() { - it ('is true when a tag value is greater than the selector value', function() { + it('is true when a tag value is greater than the selector value', function() { var selectorTags = { lanes: 5 }; var tags = { lanes : 6 }; expect(_ruleChecks.greaterThan(selectorTags)(tags)).to.be.true; }); - it ('is false when a tag value is less than or equal to the selector value', function() { + it('is false when a tag value is less than or equal to the selector value', function() { var selectorTags = { lanes: 5 }; [4, 5].forEach(function(val) { expect(_ruleChecks.greaterThan(selectorTags)({ lanes: val })).to.be.false; @@ -247,25 +247,25 @@ describe('maprules', function() { }); }); describe('greaterThanEqual', function() { - it ('is true when a tag value is greater than or equal to the selector value', function() { + it('is true when a tag value is greater than or equal to the selector value', function() { var selectorTags = { lanes: 5 }; [5, 6].forEach(function(val) { expect(_ruleChecks.greaterThanEqual(selectorTags)({ lanes: val })).to.be.true; }); }); - it ('is false when a tag value is less than the selector value', function () { + it('is false when a tag value is less than the selector value', function () { var selectorTags = { lanes: 5 }; var tags = { lanes: 4 }; expect(_ruleChecks.greaterThanEqual(selectorTags)(tags)).to.be.false; }); }); describe('lessThan', function() { - it ('is true when a tag value is less than the selector value', function() { + it('is true when a tag value is less than the selector value', function() { var selectorTags = { lanes: 5 }; var tags = { lanes: 4 }; expect(_ruleChecks.lessThan(selectorTags)(tags)).to.be.true; }); - it ('is false when a tag value is greater than or equal to the selector value', function() { + it('is false when a tag value is greater than or equal to the selector value', function() { var selectorTags = { lanes: 5 }; [6, 7].forEach(function(val) { expect(_ruleChecks.lessThan(selectorTags)({ lanes: val })).to.be.false; @@ -273,13 +273,13 @@ describe('maprules', function() { }); }); describe('lessThanEqual', function() { - it ('is true when a tag value is less than or equal to the selector value', function() { + it('is true when a tag value is less than or equal to the selector value', function() { var selectorTags = { lanes: 5 }; [4, 5].forEach(function(val) { expect(_ruleChecks.lessThanEqual(selectorTags)({ lanes: val })).to.be.true; }); }); - it ('is false when a tag value is greater than the selector value', function() { + it('is false when a tag value is greater than the selector value', function() { var selectorTags = { lanes: 5 }; var tags = { lanes: 6 }; expect(_ruleChecks.lessThanEqual(selectorTags)(tags)).to.be.false; @@ -287,22 +287,22 @@ describe('maprules', function() { }); describe('positiveRegex', function() { var positiveRegex = { amenity: ['^hospital$','^clinic$']}; - it ('is true when tag value matches positiveRegex', function() { + it('is true when tag value matches positiveRegex', function() { var tags = { amenity: 'hospital' }; expect(_ruleChecks.positiveRegex(positiveRegex)(tags)).to.be.true; }); - it ('is false when tag value does not match negative regex', function() { + it('is false when tag value does not match negative regex', function() { var tags = { amenity: 'school' }; expect(_ruleChecks.positiveRegex(positiveRegex)(tags)).to.be.false; }); }); describe('negativeRegex', function() { var negativeRegex = { bicycle: [ 'use_path', 'designated' ] }; - it ('is true when tag value does not match negativeRegex', function() { + it('is true when tag value does not match negativeRegex', function() { var tags = { bicycle: 'yes' }; expect(_ruleChecks.negativeRegex(negativeRegex)(tags)).to.be.true; }); - it ('is false when tag value matches negativeRegex', function() { + it('is false when tag value matches negativeRegex', function() { var tags = { bicycle: 'designated' }; expect(_ruleChecks.negativeRegex(negativeRegex)(tags)).to.be.false; }); @@ -450,7 +450,7 @@ describe('maprules', function() { expect(rule.matches(entities[i])).to.be.true; }); }); - it ('is true when at least one rule check is \'false\'', function() { + it('is true when at least one rule check is \'false\'', function() { var selector = { geometry: 'way', equals: { highway: 'residential' },