#2395 - Handle empty output for redpen

This commit is contained in:
w0rp
2019-03-29 16:09:27 +00:00
parent e1e8f0dae1
commit 3eb6d7b3db
3 changed files with 13 additions and 5 deletions

View File

@@ -24,6 +24,9 @@ Execute(Vendor executables should be detected):
Execute(The project path should be correct for .git directories):
call ale#test#SetFilename('psalm-project/test.php')
call mkdir(g:dir . '/.git')
AssertLSPProject g:dir
if !isdirectory(g:dir . '/.git')
call mkdir(g:dir . '/.git')
endif
AssertLSPProject g:dir

View File

@@ -80,7 +80,7 @@ Execute(redpen handler should handle errors output):
\ ']',
\ ])
Execute(redpen handler should no error output):
Execute(The redpen handler should handle an empty error list):
AssertEqual
\ [],
\ ale#handlers#redpen#HandleRedpenOutput(bufnr(''), [
@@ -91,3 +91,8 @@ Execute(redpen handler should no error output):
\ ' }',
\ ']',
\ ])
Execute(The redpen handler should handle totally empty output):
AssertEqual
\ [],
\ ale#handlers#redpen#HandleRedpenOutput(bufnr(''), [])