summaryrefslogtreecommitdiff
path: root/test/fixers/test_purs_tidy_fixer_callback.vader
blob: fdeb3f213e755332ca06798a1fde91c8dcd7b704 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Before:
  Save g:ale_purescript_tidy_executable
  Save g:ale_purescript_tidy_options

  " Use an invalid global executable, so we don’t match it.
  let g:ale_purescript_tidy_executable = 'odd-purs-tidy'
  let g:ale_purescript_tidy_options = '--indent 3'

  call ale#assert#SetUpFixerTest('purescript', 'purs-tidy')

After:
  call ale#assert#TearDownFixerTest()

Execute(The purs-tidy callback should return the correct custom options):
  AssertFixer
  \ {
  \   'command': ale#Escape('odd-purs-tidy')
  \     . ' format'
  \     . ' --indent 3'
  \ }