From 433b57c196af4e21e854b1dfd632c1186d5438f9 Mon Sep 17 00:00:00 2001 From: Dan Purdy Date: Tue, 9 Aug 2016 00:50:24 +0100 Subject: [PATCH] include test files --- tests/cli.js | 2 +- tests/yml/.sass-lint.yml/.sass-lint.yml | 9 ++++++++- tests/yml/.sasslintrc/.sasslintrc | 14 +++++++++++++- 3 files changed, 22 insertions(+), 3 deletions(-) mode change 120000 => 100644 tests/yml/.sass-lint.yml/.sass-lint.yml mode change 120000 => 100644 tests/yml/.sasslintrc/.sasslintrc diff --git a/tests/cli.js b/tests/cli.js index dc5f1e7e..6e004820 100644 --- a/tests/cli.js +++ b/tests/cli.js @@ -262,7 +262,7 @@ describe('cli', function () { }); it('should return JSON from .sasslintrc', function (done) { - var command = 'sass-lint ../../cli/cli.scss --verbose'; + var command = 'sass-lint ../../cli/cli.scss -c ".sasslintrc" --verbose'; exec(command, { cwd: path.join(__dirname, 'yml', '.sasslintrc') }, function (err, stdout) { if (err) { diff --git a/tests/yml/.sass-lint.yml/.sass-lint.yml b/tests/yml/.sass-lint.yml/.sass-lint.yml deleted file mode 120000 index 293a8cc2..00000000 --- a/tests/yml/.sass-lint.yml/.sass-lint.yml +++ /dev/null @@ -1 +0,0 @@ -../.color-keyword-errors.yml \ No newline at end of file diff --git a/tests/yml/.sass-lint.yml/.sass-lint.yml b/tests/yml/.sass-lint.yml/.sass-lint.yml new file mode 100644 index 00000000..2ba37375 --- /dev/null +++ b/tests/yml/.sass-lint.yml/.sass-lint.yml @@ -0,0 +1,8 @@ +options: + formatter: json + cache-config: false + merge-default-rules: false +files: + include: '**/*.s+(a|c)ss' +rules: + no-color-keywords: 1 diff --git a/tests/yml/.sasslintrc/.sasslintrc b/tests/yml/.sasslintrc/.sasslintrc deleted file mode 120000 index 293a8cc2..00000000 --- a/tests/yml/.sasslintrc/.sasslintrc +++ /dev/null @@ -1 +0,0 @@ -../.color-keyword-errors.yml \ No newline at end of file diff --git a/tests/yml/.sasslintrc/.sasslintrc b/tests/yml/.sasslintrc/.sasslintrc new file mode 100644 index 00000000..a7505d0c --- /dev/null +++ b/tests/yml/.sasslintrc/.sasslintrc @@ -0,0 +1,13 @@ +{ + "options": { + "formatter": "json", + "cache-config": false, + "merge-default-rules": false + }, + "files": { + "include": "**/*.s+(a|c)ss" + }, + "rules": { + "no-color-keywords": 1 + } +}