From 89f8d3e456713846d1ebdd934027ae7a910cf5f8 Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 18 Feb 2018 10:13:30 +0000 Subject: Fix #1336 - Print a friendly message when using invalid function names for fixers --- test/fix/test_ale_fix.vader | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/fix/test_ale_fix.vader') 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 -- cgit v1.2.3