22 lines
551 B
Text
22 lines
551 B
Text
Before:
|
||
Save g:ale_dhall_executable
|
||
Save g:ale_dhall_options
|
||
|
||
" Use an invalid global executable, so we don’t match it.
|
||
let g:ale_dhall_executable = 'odd-dhall'
|
||
let g:ale_dhall_options = '--ascii'
|
||
|
||
call ale#assert#SetUpFixerTest('dhall-lint', 'dhall-lint')
|
||
|
||
After:
|
||
call ale#assert#TearDownFixerTest()
|
||
|
||
Execute(The dhall-lint callback should return the correct options):
|
||
AssertFixer
|
||
\ {
|
||
\ 'command': ale#Escape('odd-dhall')
|
||
\ . ' --ascii'
|
||
\ . ' lint'
|
||
\ . ' --inplace %t',
|
||
\ 'read_temporary_file': 1,
|
||
\ }
|