ale/test/fixers/test_dhall_lint_fixer_callb...

21 lines
491 B
Plaintext
Raw Permalink Normal View History

2020-08-02 16:58:49 +00:00
Before:
Save g:ale_dhall_executable
Save g:ale_dhall_options
" Use an invalid global executable, so we dont match it.
let g:ale_dhall_executable = 'odd-dhall'
let g:ale_dhall_options = '--ascii'
call ale#assert#SetUpFixerTest('dhall', 'dhall-lint')
2020-08-02 16:58:49 +00:00
After:
call ale#assert#TearDownFixerTest()
2020-08-02 16:58:49 +00:00
Execute(The dhall-lint callback should return the correct options):
AssertFixer
2020-08-02 16:58:49 +00:00
\ {
\ 'command': ale#Escape('odd-dhall')
\ . ' --ascii'
\ . ' lint'
\ }