summaryrefslogtreecommitdiff
path: root/test/test_go_to_definition.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-06-01 14:15:32 +0100
committerw0rp <devw0rp@gmail.com>2018-06-01 14:15:32 +0100
commit6a7e00d9aca6aad374afcc8a64e322693bde55d8 (patch)
treee3f0d5ce8d09bf623e225ce45d982c3cd7160933 /test/test_go_to_definition.vader
parent10e1545630943aa98320b62f97f79a6f85340e51 (diff)
downloadale-6a7e00d9aca6aad374afcc8a64e322693bde55d8.zip
Handle definition responses without files
Diffstat (limited to 'test/test_go_to_definition.vader')
-rw-r--r--test/test_go_to_definition.vader13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test_go_to_definition.vader b/test/test_go_to_definition.vader
index 5bd75675..6af97099 100644
--- a/test/test_go_to_definition.vader
+++ b/test/test_go_to_definition.vader
@@ -56,6 +56,19 @@ Execute(Failed definition responses should be handled correctly):
\)
AssertEqual {}, ale#definition#GetMap()
+Execute(Failed definition responses with no files should be handled correctly):
+ call ale#definition#SetMap({3: {'open_in_tab': 0}})
+ call ale#definition#HandleTSServerResponse(
+ \ 1,
+ \ {
+ \ 'command': 'definition',
+ \ 'request_seq': 3,
+ \ 'success': v:true,
+ \ 'body': [],
+ \ }
+ \)
+ AssertEqual {}, ale#definition#GetMap()
+
Given typescript(Some typescript file):
foo
somelongerline