mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-22 03:51:26 +08:00
Clean up tests to stop people copy and pasting the wrong examples
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
Before:
|
||||
runtime ale_linters/yaml/swaglint.vim
|
||||
|
||||
call ale#test#SetDirectory('/testplugin/test/command_callback')
|
||||
|
||||
After:
|
||||
call ale#linter#Reset()
|
||||
let g:ale_yaml_swaglint_executable = 'swaglint'
|
||||
let g:ale_yaml_swaglint_use_global = 0
|
||||
|
||||
call ale#linter#Reset()
|
||||
|
||||
Execute(The yaml swaglint command callback should return the correct default string):
|
||||
AssertEqual 'swaglint',
|
||||
\ ale_linters#yaml#swaglint#GetExecutable(bufnr(''))
|
||||
|
||||
Reference in New Issue
Block a user