File: test_stylua_fixer_callback.vader

package info (click to toggle)
vim-ale 3.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,408 kB
  • sloc: sh: 497; python: 311; perl: 31; makefile: 4; javascript: 1
file content (19 lines) | stat: -rw-r--r-- 514 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Before:
  call ale#assert#SetUpFixerTest('lua', 'stylua')

After:
  call ale#assert#TearDownFixerTest()

Execute(The default command should be correct):
  AssertFixer {'command': ale#Escape('stylua') . ' -'}

Execute(The stylua callback should include custom stylua options):
  let g:ale_lua_stylua_executable = 'xxxinvalid'
  let g:ale_lua_stylua_options = '--search-parent-directories'

  AssertFixer
  \ {
  \   'command': ale#Escape('xxxinvalid')
  \     . ' ' . g:ale_lua_stylua_options
  \     . ' -',
  \ }