summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lsp/test_lsp_client_messages.vader31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/lsp/test_lsp_client_messages.vader b/test/lsp/test_lsp_client_messages.vader
index 5decbf6c..3b5c64fa 100644
--- a/test/lsp/test_lsp_client_messages.vader
+++ b/test/lsp/test_lsp_client_messages.vader
@@ -146,3 +146,34 @@ Execute(ale#lsp#tsserver_message#Geterr() should return correct messages):
\ }
\ ],
\ ale#lsp#tsserver_message#Geterr(bufnr(''))
+
+Execute(ale#lsp#tsserver_message#Completions() should return correct messages):
+ silent! noautocmd file foo.ts
+
+ AssertEqual
+ \ [
+ \ 0,
+ \ 'ts@completions',
+ \ {
+ \ 'file': b:dir . '/foo.ts',
+ \ 'line': 347,
+ \ 'offset': 12,
+ \ }
+ \ ],
+ \ ale#lsp#tsserver_message#Completions(bufnr(''), 347, 12)
+
+Execute(ale#lsp#tsserver_message#CompletionEntryDetails() should return correct messages):
+ silent! noautocmd file foo.ts
+
+ AssertEqual
+ \ [
+ \ 0,
+ \ 'ts@completionEntryDetails',
+ \ {
+ \ 'file': b:dir . '/foo.ts',
+ \ 'line': 347,
+ \ 'offset': 12,
+ \ 'entryNames': ['foo', 'bar'],
+ \ }
+ \ ],
+ \ ale#lsp#tsserver_message#CompletionEntryDetails(bufnr(''), 347, 12, ['foo', 'bar'])