summaryrefslogtreecommitdiff
path: root/test/fixers/test_mix_format_fixer_callback.vader
blob: c6c97c5737d8a7ef1ad777adbba070213730d001 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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(''))