diff options
author | w0rp <devw0rp@gmail.com> | 2018-06-11 21:37:50 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-06-12 19:31:08 +0100 |
commit | 87455a2ef492b2308179a6f2f062d1109023ac56 (patch) | |
tree | 2f23b511c83075311847bfc689ce980f77b1e43d | |
parent | d9746a4572c5f097f602cb3a06b18a4ad2fad678 (diff) | |
download | ale-87455a2ef492b2308179a6f2f062d1109023ac56.zip |
Add a test for handling missing detail keys for LSP completion
-rw-r--r-- | test/completion/test_lsp_completion_parsing.vader | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/completion/test_lsp_completion_parsing.vader b/test/completion/test_lsp_completion_parsing.vader index 23bbd14c..736353e3 100644 --- a/test/completion/test_lsp_completion_parsing.vader +++ b/test/completion/test_lsp_completion_parsing.vader @@ -429,3 +429,23 @@ Execute(Should handle Python completion results correctly): \ ] \ } \ }) + +Execute(Should handle missing detail keys): + AssertEqual + \ [ + \ {'word': 'x', 'menu': '', 'info': 'y', 'kind': 'f', 'icase': 1}, + \ ], + \ ale#completion#ParseLSPCompletions({ + \ 'jsonrpc': '2.0', + \ 'id': 6, + \ 'result': { + \ 'isIncomplete': v:false, + \ 'items': [ + \ { + \ 'label': 'x', + \ 'kind': 3, + \ 'documentation': 'y', + \ }, + \ ] + \ } + \ }) |