summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-11-22 15:31:39 +0000
committerw0rp <devw0rp@gmail.com>2017-11-22 15:31:39 +0000
commit5d2ab192cf4ecce604cee4e8870ff7d5d3f47ed8 (patch)
tree46a8f8ff89cc7107ce9b892dbcbe8f82f5b4b08a /test
parent5ed6f66f7779bea092671521ad5743914612a18a (diff)
downloadale-5d2ab192cf4ecce604cee4e8870ff7d5d3f47ed8.zip
Support fixer aliases, and make prettier-eslint and prettier-standard just work
Diffstat (limited to 'test')
-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:',
\ '',