summaryrefslogtreecommitdiff
path: root/test/completion/test_completion_events.vader
diff options
context:
space:
mode:
authorJerko Steiner <jerko.steiner@gmail.com>2019-10-22 16:40:27 -0500
committerJerko Steiner <jerko.steiner@gmail.com>2019-10-22 16:40:27 -0500
commit463deedc2998ecf864bb479f07e87aa4e83e3030 (patch)
tree34f72b8b639987de68050e9fa42ba1e2f0289f35 /test/completion/test_completion_events.vader
parent40890cfcf38a91e75176d39748a7e4ccb24aeb6b (diff)
parent67d0ccc398ca7650bb2c774a94d098bee3049169 (diff)
downloadale-463deedc2998ecf864bb479f07e87aa4e83e3030.zip
Merge branch 'master' into do-not-save-on-autoimport
Diffstat (limited to 'test/completion/test_completion_events.vader')
-rw-r--r--test/completion/test_completion_events.vader6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/completion/test_completion_events.vader b/test/completion/test_completion_events.vader
index a6dcdac4..90a2e3a2 100644
--- a/test/completion/test_completion_events.vader
+++ b/test/completion/test_completion_events.vader
@@ -432,6 +432,12 @@ Execute(HandleUserData should call ale#code_action#HandleCodeAction):
\})
AssertEqual g:handle_code_action_called, 2
+ let b:ale_completion_info = {'source': 'ale-callback'}
+ call ale#completion#HandleUserData({
+ \ 'user_data': '{"codeActions": [{"description":"", "changes": []}]}'
+ \})
+ AssertEqual g:handle_code_action_called, 3
+
Execute(ale#code_action#HandleCodeAction should not be called when when source is not ALE):
call MockHandleCodeAction()
let b:ale_completion_info = {'source': 'syntastic'}