mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 21:24:33 +08:00
Massively reduce the amount of code needed for linter tests
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
Before:
|
||||
call ale#test#SetDirectory('/testplugin/test/command_callback')
|
||||
call ale#assert#SetUpLinterTest('sass', 'sasslint')
|
||||
call ale#test#SetFilename('test.sass')
|
||||
|
||||
After:
|
||||
call ale#test#RestoreDirectory()
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
Execute(The default sasslint command should be correct):
|
||||
AssertEqual
|
||||
AssertLinter 'sass-lint',
|
||||
\ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
|
||||
\ . ale#Escape('sass-lint') . ' -v -q -f compact %t',
|
||||
\ ale#handlers#sasslint#GetCommand(bufnr(''))
|
||||
\ . ale#Escape('sass-lint') . ' -v -q -f compact %t'
|
||||
|
||||
Reference in New Issue
Block a user