summaryrefslogtreecommitdiff
path: root/test/fix/test_ale_fix.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-02-18 10:13:30 +0000
committerw0rp <devw0rp@gmail.com>2018-02-18 10:13:30 +0000
commit89f8d3e456713846d1ebdd934027ae7a910cf5f8 (patch)
tree2d06c585ea4ae6c151cfc91a5cfb12a660cac264 /test/fix/test_ale_fix.vader
parent5915a0ee39ba04a5a4118d5f71766912a6b87fe9 (diff)
downloadale-89f8d3e456713846d1ebdd934027ae7a910cf5f8.zip
Fix #1336 - Print a friendly message when using invalid function names for fixers
Diffstat (limited to 'test/fix/test_ale_fix.vader')
-rw-r--r--test/fix/test_ale_fix.vader10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/fix/test_ale_fix.vader b/test/fix/test_ale_fix.vader
index 817c243d..5b66c92c 100644
--- a/test/fix/test_ale_fix.vader
+++ b/test/fix/test_ale_fix.vader
@@ -574,6 +574,16 @@ Execute(ALE should print a message telling you something isn't a valid fixer whe
AssertEqual 'There is no fixer named `invalidname`. Check :ALEFixSuggest', GetLastMessage()
+Execute(ALE should complain about invalid fixers with minuses in the name):
+ let g:ale_fixers.testft = ['foo-bar']
+ ALEFix
+
+ AssertEqual 'There is no fixer named `foo-bar`. Check :ALEFixSuggest', GetLastMessage()
+
+Execute(ALE should tolerate valid fixers with minuses in the name):
+ let g:ale_fixers.testft = ['prettier-standard']
+ ALEFix
+
Execute(Test fixing with chained callbacks):
let g:ale_fixers.testft = ['FirstChainCallback']
ALEFix