mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-21 00:58:34 +08:00
#3633 - Put all dummy test files in test/test-files
This commit is contained in:
@@ -9,28 +9,28 @@ After:
|
||||
call ale#assert#TearDownFixerTest()
|
||||
|
||||
Execute(The stylelint callback should return the correct default values):
|
||||
call ale#test#SetFilename('../eslint-test-files/react-app/subdir/testfile.css')
|
||||
call ale#test#SetFilename('../test-files/eslint/react-app/subdir/testfile.css')
|
||||
|
||||
AssertFixer
|
||||
\ {
|
||||
\ 'read_temporary_file': 1,
|
||||
\ 'cwd': '%s:h',
|
||||
\ 'command': (has('win32') ? 'node.exe ' : '')
|
||||
\ . ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/node_modules/stylelint/bin/stylelint.js'))
|
||||
\ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/stylelint/bin/stylelint.js'))
|
||||
\ . ' %t'
|
||||
\ . ' --fix',
|
||||
\ }
|
||||
|
||||
Execute(The stylelint callback should include custom stylelint options):
|
||||
let g:ale_stylelint_options = '--cache'
|
||||
call ale#test#SetFilename('../eslint-test-files/react-app/subdir/testfile.css')
|
||||
call ale#test#SetFilename('../test-files/eslint/react-app/subdir/testfile.css')
|
||||
|
||||
AssertFixer
|
||||
\ {
|
||||
\ 'read_temporary_file': 1,
|
||||
\ 'cwd': '%s:h',
|
||||
\ 'command': (has('win32') ? 'node.exe ' : '')
|
||||
\ . ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/node_modules/stylelint/bin/stylelint.js'))
|
||||
\ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/eslint/react-app/node_modules/stylelint/bin/stylelint.js'))
|
||||
\ . ' %t'
|
||||
\ . ' --cache'
|
||||
\ . ' --fix',
|
||||
|
||||
Reference in New Issue
Block a user