diff options
author | w0rp <devw0rp@gmail.com> | 2019-03-29 16:09:27 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2019-03-29 16:09:27 +0000 |
commit | 3eb6d7b3db5d76aae1d394f8615a52e1d4bee9fa (patch) | |
tree | 1a63b18cdf6160f279774ab992e58baf70c48b0c /test | |
parent | e1e8f0dae12fc8603ab2e949f34bce8106fa3263 (diff) | |
download | ale-3eb6d7b3db5d76aae1d394f8615a52e1d4bee9fa.zip |
#2395 - Handle empty output for redpen
Diffstat (limited to 'test')
-rw-r--r-- | test/command_callback/test_psalm_command_callbacks.vader | 7 | ||||
-rw-r--r-- | test/handler/test_redpen_handler.vader | 7 |
2 files changed, 11 insertions, 3 deletions
diff --git a/test/command_callback/test_psalm_command_callbacks.vader b/test/command_callback/test_psalm_command_callbacks.vader index d731054f..33d770c2 100644 --- a/test/command_callback/test_psalm_command_callbacks.vader +++ b/test/command_callback/test_psalm_command_callbacks.vader @@ -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
\ No newline at end of file + if !isdirectory(g:dir . '/.git') + call mkdir(g:dir . '/.git') + endif + + AssertLSPProject g:dir diff --git a/test/handler/test_redpen_handler.vader b/test/handler/test_redpen_handler.vader index 4490bcba..0b030e2d 100644 --- a/test/handler/test_redpen_handler.vader +++ b/test/handler/test_redpen_handler.vader @@ -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(''), []) |