Clean up the mix format command and tests
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
Before:
|
||||
call ale#test#SetDirectory('/testplugin/test/fixers')
|
||||
Save g:ale_elixir_mix_executable
|
||||
Save g:ale_elixir_mix_format_options
|
||||
|
||||
let g:ale_elixir_mix_executable = 'xxxinvalid'
|
||||
let g:ale_elixir_mix_format_options = ''
|
||||
|
||||
call ale#test#SetDirectory('/testplugin/test/fixers')
|
||||
|
||||
After:
|
||||
Restore
|
||||
|
||||
call ale#test#RestoreDirectory()
|
||||
|
||||
Execute(The mix_format callback should return the correct default values):
|
||||
@@ -15,7 +19,7 @@ Execute(The mix_format callback should return the correct default values):
|
||||
\ {
|
||||
\ 'read_temporary_file': 1,
|
||||
\ 'command': ale#Escape('xxxinvalid')
|
||||
\ . ' format %t',
|
||||
\ . ' format %t',
|
||||
\ },
|
||||
\ ale#fixers#mix_format#Fix(bufnr(''))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user