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_dhall_freeze_fixer_callback.vader

25 lines
621 B
Text
Raw 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'
let g:ale_dhall_freeze_options = '--all'
call ale#assert#SetUpFixerTest('dhall-freeze', 'dhall-freeze')
2020-08-02 16:58:49 +00:00
After:
call ale#assert#TearDownFixerTest()
2020-08-02 16:58:49 +00:00
Execute(The dhall-freeze callback should return the correct options):
AssertFixer
2020-08-02 16:58:49 +00:00
\ {
\ 'command': ale#Escape('odd-dhall')
\ . ' --ascii'
\ . ' freeze'
\ . ' --all'
\ . ' --inplace %t',
\ 'read_temporary_file': 1,
\ }