From 074e47b51d7b6b42878c37a49fd635f0fa6d37b7 Mon Sep 17 00:00:00 2001 From: Dan Purdy Date: Tue, 18 Oct 2016 00:41:25 +0100 Subject: [PATCH] :bug: fix strictbem *-name-format --- tests/helpers/isStrictBEM.js | 4 ++-- tests/rules/function-name-format.js | 4 ++-- tests/rules/mixin-name-format.js | 4 ++-- tests/rules/placeholder-name-format.js | 4 ++-- tests/rules/variable-name-format.js | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/helpers/isStrictBEM.js b/tests/helpers/isStrictBEM.js index 6c474519..0fa85d39 100644 --- a/tests/helpers/isStrictBEM.js +++ b/tests/helpers/isStrictBEM.js @@ -89,11 +89,11 @@ describe('helpers - isStrictBEM', function () { done(); }); - it('isStrictBEM - [\'abc_def\' - false]', function (done) { + it('isStrictBEM - [\'abc_def\' - true]', function (done) { var result = helpers.isStrictBEM('abc_def'); - assert.equal(false, result); + assert.equal(true, result); done(); }); diff --git a/tests/rules/function-name-format.js b/tests/rules/function-name-format.js index ba2bb02a..beda9f51 100644 --- a/tests/rules/function-name-format.js +++ b/tests/rules/function-name-format.js @@ -65,7 +65,7 @@ describe('function name format - scss', function () { } ] }, function (data) { - lint.assert.equal(13, data.warningCount); + lint.assert.equal(10, data.warningCount); done(); }); }); @@ -177,7 +177,7 @@ describe('function name format - sass', function () { } ] }, function (data) { - lint.assert.equal(13, data.warningCount); + lint.assert.equal(10, data.warningCount); done(); }); }); diff --git a/tests/rules/mixin-name-format.js b/tests/rules/mixin-name-format.js index 3b57f45e..4c985802 100644 --- a/tests/rules/mixin-name-format.js +++ b/tests/rules/mixin-name-format.js @@ -65,7 +65,7 @@ describe('mixin name format - scss', function () { } ] }, function (data) { - lint.assert.equal(13, data.warningCount); + lint.assert.equal(9, data.warningCount); done(); }); }); @@ -177,7 +177,7 @@ describe('mixin name format - sass', function () { } ] }, function (data) { - lint.assert.equal(13, data.warningCount); + lint.assert.equal(9, data.warningCount); done(); }); }); diff --git a/tests/rules/placeholder-name-format.js b/tests/rules/placeholder-name-format.js index a5f8e40d..0d30033e 100644 --- a/tests/rules/placeholder-name-format.js +++ b/tests/rules/placeholder-name-format.js @@ -69,7 +69,7 @@ describe('placeholder name format - scss', function () { } ] }, function (data) { - lint.assert.equal(13, data.warningCount); + lint.assert.equal(9, data.warningCount); done(); }); }); @@ -185,7 +185,7 @@ describe('placeholder name format - sass', function () { } ] }, function (data) { - lint.assert.equal(13, data.warningCount); + lint.assert.equal(9, data.warningCount); done(); }); }); diff --git a/tests/rules/variable-name-format.js b/tests/rules/variable-name-format.js index 9d3cf406..3572d28f 100644 --- a/tests/rules/variable-name-format.js +++ b/tests/rules/variable-name-format.js @@ -69,7 +69,7 @@ describe('variable name format - scss', function () { } ] }, function (data) { - lint.assert.equal(12, data.warningCount); + lint.assert.equal(9, data.warningCount); done(); }); }); @@ -185,7 +185,7 @@ describe('variable name format - sass', function () { } ] }, function (data) { - lint.assert.equal(12, data.warningCount); + lint.assert.equal(9, data.warningCount); done(); }); });