summaryrefslogtreecommitdiff
path: root/test/test_ale_fix.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_ale_fix.vader')
-rw-r--r--test/test_ale_fix.vader15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test_ale_fix.vader b/test/test_ale_fix.vader
index ac6427ab..c5deabb4 100644
--- a/test/test_ale_fix.vader
+++ b/test/test_ale_fix.vader
@@ -105,6 +105,11 @@ Before:
return {'command': ''}
endfunction
+ " echo will output a single blank line, and we should ingore it.
+ function! IgnoredEmptyOutput(buffer, output)
+ return {'command': 'echo'}
+ endfunction
+
function! SetUpLinters()
call ale#linter#Define('testft', {
\ 'name': 'testlinter',
@@ -149,6 +154,7 @@ After:
delfunction ChainEndSkipped
delfunction SetUpLinters
delfunction GetLastMessage
+ delfunction IgnoredEmptyOutput
call ale#test#RestoreDirectory()
@@ -568,3 +574,12 @@ Expect(The lines should be the same):
a
b
c
+
+Execute(Empty output should be ignored):
+ let g:ale_fixers.testft = ['IgnoredEmptyOutput']
+ ALEFix
+
+Expect(The lines should be the same):
+ a
+ b
+ c