Skip to content

Commit 40b669d

Browse files
committed
Adding --no-color expectation to stylelint tests
1 parent f82d4a3 commit 40b669d

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

test/fixers/test_stylelint_fixer_callback.vader

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Execute(The stylelint callback should return the correct default values):
1717
\ 'cwd': '%s:h',
1818
\ 'command': (has('win32') ? 'node.exe ' : '')
1919
\ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/stylelint/bin/stylelint.js'))
20-
\ . ' --fix --stdin --stdin-filename %s',
20+
\ . ' --fix --stdin --no-color --stdin-filename %s',
2121
\ }
2222

2323
Execute(The stylelint callback should include custom stylelint options):
@@ -30,5 +30,5 @@ Execute(The stylelint callback should include custom stylelint options):
3030
\ 'cwd': '%s:h',
3131
\ 'command': (has('win32') ? 'node.exe ' : '')
3232
\ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/stylelint/bin/stylelint.js'))
33-
\ . ' --cache --fix --stdin --stdin-filename %s',
33+
\ . ' --cache --fix --stdin --no-color --stdin-filename %s',
3434
\ }

test/linter/test_html_stylelint.vader

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Execute(node_modules directories should be discovered):
3737

3838
AssertEqual b:executable, ale_linters#html#stylelint#GetExecutable(bufnr(''))
3939
AssertEqual
40-
\ ale#Escape(b:executable) . ' --stdin-filename %s',
40+
\ ale#Escape(b:executable) . ' --no-color --stdin-filename %s',
4141
\ ale_linters#html#stylelint#GetCommand(bufnr(''))
4242

4343
Execute(The global override should work):
@@ -48,13 +48,13 @@ Execute(The global override should work):
4848

4949
AssertEqual 'foobar', ale_linters#html#stylelint#GetExecutable(bufnr(''))
5050
AssertEqual
51-
\ ale#Escape('foobar') . ' --stdin-filename %s',
51+
\ ale#Escape('foobar') . ' --no-color --stdin-filename %s',
5252
\ ale_linters#html#stylelint#GetCommand(bufnr(''))
5353

5454
Execute(Extra options should be configurable):
5555
let b:ale_html_stylelint_options = '--whatever'
5656

5757
AssertEqual 'stylelint', ale_linters#html#stylelint#GetExecutable(bufnr(''))
5858
AssertEqual
59-
\ ale#Escape('stylelint') . ' --whatever --stdin-filename %s',
59+
\ ale#Escape('stylelint') . ' --whatever --no-color --stdin-filename %s',
6060
\ ale_linters#html#stylelint#GetCommand(bufnr(''))

test/linter/test_less_stylelint.vader

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ Execute(node_modules directories should be discovered):
1414
\ . '/../test-files/stylelint/node_modules/.bin/stylelint'
1515
\)
1616

17-
AssertLinter b:executable, ale#Escape(b:executable) . ' --stdin-filename %s'
17+
AssertLinter b:executable, ale#Escape(b:executable) . ' --no-color --stdin-filename %s'
1818

1919
Execute(The global override should work):
2020
let b:ale_less_stylelint_executable = 'foobar'
2121
let b:ale_less_stylelint_use_global = 1
2222

2323
call ale#test#SetFilename('../test-files/stylelint/nested/testfile.less')
2424

25-
AssertLinter 'foobar', ale#Escape('foobar') . ' --stdin-filename %s'
25+
AssertLinter 'foobar', ale#Escape('foobar') . ' --no-color --stdin-filename %s'
2626

2727
Execute(Extra options should be configurable):
2828
let b:ale_less_stylelint_options = '--whatever'
2929
call ale#test#SetFilename('../test-files/dummy')
3030

3131
AssertLinter 'stylelint',
32-
\ ale#Escape('stylelint') . ' --whatever --stdin-filename %s'
32+
\ ale#Escape('stylelint') . ' --whatever --no-color --stdin-filename %s'

test/linter/test_scss_stylelint.vader

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ Execute(node_modules directories should be discovered):
1414
\ . '/../test-files/stylelint/node_modules/.bin/stylelint'
1515
\)
1616

17-
AssertLinter b:executable, ale#Escape(b:executable) . ' --stdin-filename %s'
17+
AssertLinter b:executable, ale#Escape(b:executable) . ' --no-color --stdin-filename %s'
1818

1919
Execute(The global override should work):
2020
let b:ale_scss_stylelint_executable = 'foobar'
2121
let b:ale_scss_stylelint_use_global = 1
2222

2323
call ale#test#SetFilename('../test-files/stylelint/nested/testfile.scss')
2424

25-
AssertLinter 'foobar', ale#Escape('foobar') . ' --stdin-filename %s'
25+
AssertLinter 'foobar', ale#Escape('foobar') . ' --no-color --stdin-filename %s'
2626

2727
Execute(Extra options should be configurable):
2828
call ale#test#SetFilename('../test-files/dummy')
2929

3030
let b:ale_scss_stylelint_options = '--configFile ''/absolute/path/to/file'''
3131

3232
AssertLinter 'stylelint',
33-
\ ale#Escape('stylelint') . ' --configFile ''/absolute/path/to/file'' --stdin-filename %s'
33+
\ ale#Escape('stylelint') . ' --configFile ''/absolute/path/to/file'' --no-color --stdin-filename %s'

test/linter/test_sugarss_stylelint.vader

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ Execute(node_modules directories should be discovered):
1414
\ . '/../test-files/stylelint/node_modules/.bin/stylelint'
1515
\)
1616

17-
AssertLinter b:executable, ale#Escape(b:executable) . ' --syntax=sugarss --stdin-filename %s'
17+
AssertLinter b:executable, ale#Escape(b:executable) . ' --syntax=sugarss --no-color --stdin-filename %s'
1818

1919
Execute(The global override should work):
2020
let b:ale_sugarss_stylelint_executable = 'foobar'
2121
let b:ale_sugarss_stylelint_use_global = 1
2222

2323
call ale#test#SetFilename('../test-files/stylelint/nested/testfile.sss')
2424

25-
AssertLinter 'foobar', ale#Escape('foobar') . ' --syntax=sugarss --stdin-filename %s'
25+
AssertLinter 'foobar', ale#Escape('foobar') . ' --syntax=sugarss --no-color --stdin-filename %s'
2626

2727
Execute(Extra options should be configurable):
2828
call ale#test#SetFilename('../test-files/dummy')
2929

3030
let b:ale_sugarss_stylelint_options = '--configFile ''/absolute/path/to/file'''
3131

3232
AssertLinter 'stylelint',
33-
\ ale#Escape('stylelint') . ' --configFile ''/absolute/path/to/file'' --syntax=sugarss --stdin-filename %s'
33+
\ ale#Escape('stylelint') . ' --configFile ''/absolute/path/to/file'' --syntax=sugarss --no-color --stdin-filename %s'

0 commit comments

Comments
 (0)