mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-08 05:24:46 +08:00
Run sass-lint from the target's directory
This commit is contained in:
17
test/command_callback/test_sasslint_command_callback.vader
Normal file
17
test/command_callback/test_sasslint_command_callback.vader
Normal file
@@ -0,0 +1,17 @@
|
||||
Before:
|
||||
runtime ale_linters/sass/sasslint.vim
|
||||
|
||||
call ale#test#SetDirectory('/testplugin/test/command_callback')
|
||||
call ale#test#SetFilename('test.sass')
|
||||
|
||||
After:
|
||||
Restore
|
||||
|
||||
call ale#test#RestoreDirectory()
|
||||
call ale#linter#Reset()
|
||||
|
||||
Execute(The default sasslint command should be correct):
|
||||
AssertEqual
|
||||
\ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
|
||||
\ . ale#Escape('sass-lint') . ' -v -q -f compact %t',
|
||||
\ ale_linters#sass#sasslint#GetCommand(bufnr(''))
|
||||
Reference in New Issue
Block a user