This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test/fixers/test_fecs_fixer_callback.vader

26 lines
795 B
Text

Before:
call ale#assert#SetUpFixerTest('javascript', 'fecs')
runtime autoload/ale/handlers/fecs.vim
After:
call ale#assert#TearDownFixerTest()
Execute(The fecs fixer should respect to g:ale_javascript_fecs_executable):
let g:ale_javascript_fecs_executable = 'fecs_paths/fecs'
let g:ale_javascript_fecs_use_global = 1
silent cd ../command_callback
let g:dir = getcwd()
AssertEqual
\ {
\ 'command': ale#Escape(g:ale_javascript_fecs_executable) . ' format --replace=true %t',
\ 'read_temporary_file': 1,
\ },
\ ale#fixers#fecs#Fix(bufnr(''))
Execute(The fecs fixer should return 0 when executable not found):
let g:ale_javascript_fecs_executable = 'fecs-invalid'
let g:ale_javascript_fecs_use_global = 1
AssertEqual
\ 0,
\ ale#fixers#fecs#Fix(bufnr(''))