diff options
author | Robert Liebowitz <rliebz@gmail.com> | 2021-07-03 05:50:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-03 18:50:48 +0900 |
commit | 0d90cb64c6d14177f6915649243d272e1308dfaf (patch) | |
tree | 1fc1c1d831f966fb1134baad471e518f25b9adc7 /test/fixers | |
parent | b749ec702af29fb4d8a550c585704b3b351134d9 (diff) | |
download | ale-0d90cb64c6d14177f6915649243d272e1308dfaf.zip |
Add stylua fixer for lua (#3789)
Diffstat (limited to 'test/fixers')
-rw-r--r-- | test/fixers/test_stylua_fixer_callback.vader | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/fixers/test_stylua_fixer_callback.vader b/test/fixers/test_stylua_fixer_callback.vader new file mode 100644 index 00000000..8621c498 --- /dev/null +++ b/test/fixers/test_stylua_fixer_callback.vader @@ -0,0 +1,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 + \ . ' -', + \ } |