diff options
author | Nick Gavalas <njg@fb.com> | 2018-09-10 18:47:04 -0400 |
---|---|---|
committer | Nick Gavalas <njg@fb.com> | 2018-09-11 10:56:58 -0400 |
commit | 44070d8a455bdea52cc235d8ed68c5945ec3ba4a (patch) | |
tree | f158b3cdeaca370e40da0cac2d7acee0f4b7eae3 /test/completion | |
parent | 99e9417ef901824200040c6a2d3e84f2e0ff4b8e (diff) | |
download | ale-44070d8a455bdea52cc235d8ed68c5945ec3ba4a.zip |
fix tsserver className parsing
Diffstat (limited to 'test/completion')
-rw-r--r-- | test/completion/test_tsserver_completion_parsing.vader | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/completion/test_tsserver_completion_parsing.vader b/test/completion/test_tsserver_completion_parsing.vader index c8e2c993..dbc4f9e2 100644 --- a/test/completion/test_tsserver_completion_parsing.vader +++ b/test/completion/test_tsserver_completion_parsing.vader @@ -32,6 +32,13 @@ Execute(TypeScript completion details responses should be parsed correctly): \ 'kind': 'f', \ 'icase': 1, \ }, + \ { + \ 'word': 'ghi', + \ 'menu': '(class) Foo', + \ 'info': '', + \ 'kind': 'f', + \ 'icase': 1, + \ }, \ ], \ ale#completion#ParseTSServerCompletionEntryDetails({ \ 'body': [ @@ -74,6 +81,17 @@ Execute(TypeScript completion details responses should be parsed correctly): \ {'text': 'baz'}, \ ], \ }, + \ { + \ 'name': 'ghi', + \ 'kind': 'className', + \ 'displayParts': [ + \ {'text': '('}, + \ {'text': 'class'}, + \ {'text': ')'}, + \ {'text': ' '}, + \ {'text': 'Foo'}, + \ ], + \ }, \ ], \}) |