summaryrefslogtreecommitdiff
path: root/test/fixers
diff options
context:
space:
mode:
authorRobert Liebowitz <rliebz@gmail.com>2021-07-03 05:50:48 -0400
committerGitHub <noreply@github.com>2021-07-03 18:50:48 +0900
commit0d90cb64c6d14177f6915649243d272e1308dfaf (patch)
tree1fc1c1d831f966fb1134baad471e518f25b9adc7 /test/fixers
parentb749ec702af29fb4d8a550c585704b3b351134d9 (diff)
downloadale-0d90cb64c6d14177f6915649243d272e1308dfaf.zip
Add stylua fixer for lua (#3789)
Diffstat (limited to 'test/fixers')
-rw-r--r--test/fixers/test_stylua_fixer_callback.vader19
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
+ \ . ' -',
+ \ }