summaryrefslogtreecommitdiff
path: root/test/fix
diff options
context:
space:
mode:
Diffstat (limited to 'test/fix')
-rw-r--r--test/fix/test_ale_fix_aliases.vader5
-rw-r--r--test/fix/test_ale_fix_suggest.vader4
2 files changed, 7 insertions, 2 deletions
diff --git a/test/fix/test_ale_fix_aliases.vader b/test/fix/test_ale_fix_aliases.vader
new file mode 100644
index 00000000..d3c47b34
--- /dev/null
+++ b/test/fix/test_ale_fix_aliases.vader
@@ -0,0 +1,5 @@
+Execute(prettier-eslint should be aliased):
+ AssertEqual 'ale#fixers#prettier_eslint#Fix', ale#fix#registry#GetFunc('prettier-eslint')
+
+Execute(prettier-standard should be aliased):
+ AssertEqual 'ale#fixers#prettier_standard#Fix', ale#fix#registry#GetFunc('prettier-standard')
diff --git a/test/fix/test_ale_fix_suggest.vader b/test/fix/test_ale_fix_suggest.vader
index 97227b4f..1100aeed 100644
--- a/test/fix/test_ale_fix_suggest.vader
+++ b/test/fix/test_ale_fix_suggest.vader
@@ -80,7 +80,7 @@ Execute(ALEFixSuggest output should be correct for only filetype handlers):
Execute(ALEFixSuggest should suggest filetype and generic handlers):
let &filetype = 'testft2.testft'
- call ale#fix#registry#Add('zed', 'XYZ', ['testft2'], 'Zedify things.')
+ call ale#fix#registry#Add('zed', 'XYZ', ['testft2'], 'Zedify things.', ['foobar'])
call ale#fix#registry#Add('alpha', 'XYZ', ['testft'], 'Alpha things.')
call ale#fix#registry#Add('generic', 'XYZ', [], 'Generic things.')
@@ -89,7 +89,7 @@ Execute(ALEFixSuggest should suggest filetype and generic handlers):
\ 'Try the following fixers appropriate for the filetype:',
\ '',
\ '''alpha'' - Alpha things.',
- \ '''zed'' - Zedify things.',
+ \ '''zed'', ''foobar'' - Zedify things.',
\ '',
\ 'Try the following generic fixers:',
\ '',