mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-31 00:24:31 +08:00
new fixer elixir mix format
(only available in elixir > 1.6)
This commit is contained in:
0
test/elixir-test-files/testfile.ex
Normal file
0
test/elixir-test-files/testfile.ex
Normal file
16
test/fixers/test_elixir_fixer_callback.vader
Normal file
16
test/fixers/test_elixir_fixer_callback.vader
Normal file
@@ -0,0 +1,16 @@
|
||||
Before:
|
||||
call ale#test#SetDirectory('/testplugin/test/fixers')
|
||||
|
||||
After:
|
||||
call ale#test#RestoreDirectory()
|
||||
|
||||
Execute(The executable path should be correct):
|
||||
call ale#test#SetFilename('../elixir-test-files/testfile.ex')
|
||||
|
||||
AssertEqual
|
||||
\ {
|
||||
\ 'read_temporary_file': 1,
|
||||
\ 'command': 'mix format'
|
||||
\ . ' %t',
|
||||
\ },
|
||||
\ ale#fixers#elixir#Fix(bufnr(''))
|
||||
Reference in New Issue
Block a user