mirror of
https://github.com/dense-analysis/ale
synced 2024-12-29 09:32:29 +00:00
21 lines
500 B
Plaintext
21 lines
500 B
Plaintext
|
Before:
|
||
|
call ale#test#SetDirectory('/testplugin/test/fixers')
|
||
|
Save g:ale_elixir_mix_executable
|
||
|
|
||
|
let g:ale_elixir_mix_executable = 'xxxinvalid'
|
||
|
|
||
|
After:
|
||
|
call ale#test#RestoreDirectory()
|
||
|
|
||
|
Execute(The mix_format callback should return the correct default values):
|
||
|
call ale#test#SetFilename('../elixir-test-files/testfile.ex')
|
||
|
|
||
|
AssertEqual
|
||
|
\ {
|
||
|
\ 'read_temporary_file': 1,
|
||
|
\ 'command': ale#Escape('xxxinvalid')
|
||
|
\ . ' format %t',
|
||
|
\ },
|
||
|
\ ale#fixers#mix_format#Fix(bufnr(''))
|
||
|
|