diff options
author | Jay Sitter <jsit@users.noreply.github.com> | 2021-04-19 23:50:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-20 12:50:57 +0900 |
commit | 737c1bf1ac9becd67519f7a6832ad276feca8f08 (patch) | |
tree | 2b4a256655c41498aac9a057a37d17a1d17be7a9 /test/fixers/test_stylelint_fixer_callback.vader | |
parent | 1c90d8c01875f5abb815fea29eb4545bd9a940c0 (diff) | |
download | ale-737c1bf1ac9becd67519f7a6832ad276feca8f08.zip |
Fix stylelint not obeying project-specific rules (#3272)
* Fix stylelint not obeying project-specific rules
* Fix tests
* Fix test
* Fix test
Diffstat (limited to 'test/fixers/test_stylelint_fixer_callback.vader')
-rw-r--r-- | test/fixers/test_stylelint_fixer_callback.vader | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/test/fixers/test_stylelint_fixer_callback.vader b/test/fixers/test_stylelint_fixer_callback.vader index 3c843975..ee7cfdd4 100644 --- a/test/fixers/test_stylelint_fixer_callback.vader +++ b/test/fixers/test_stylelint_fixer_callback.vader @@ -13,12 +13,11 @@ Execute(The stylelint callback should return the correct default values): AssertFixer \ { - \ 'read_temporary_file': 1, + \ 'read_temporary_file': 0, \ 'cwd': '%s:h', \ 'command': (has('win32') ? 'node.exe ' : '') \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/stylelint/bin/stylelint.js')) - \ . ' %t' - \ . ' --fix', + \ . ' --fix --stdin --stdin-filename %s', \ } Execute(The stylelint callback should include custom stylelint options): @@ -27,11 +26,9 @@ Execute(The stylelint callback should include custom stylelint options): AssertFixer \ { - \ 'read_temporary_file': 1, + \ 'read_temporary_file': 0, \ 'cwd': '%s:h', \ 'command': (has('win32') ? 'node.exe ' : '') \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/stylelint/bin/stylelint.js')) - \ . ' %t' - \ . ' --cache' - \ . ' --fix', + \ . ' --cache --fix --stdin --stdin-filename %s', \ } |