diff options
author | Jerko Steiner <jerko.steiner@gmail.com> | 2019-10-22 16:40:27 -0500 |
---|---|---|
committer | Jerko Steiner <jerko.steiner@gmail.com> | 2019-10-22 16:40:27 -0500 |
commit | 463deedc2998ecf864bb479f07e87aa4e83e3030 (patch) | |
tree | 34f72b8b639987de68050e9fa42ba1e2f0289f35 /test/completion | |
parent | 40890cfcf38a91e75176d39748a7e4ccb24aeb6b (diff) | |
parent | 67d0ccc398ca7650bb2c774a94d098bee3049169 (diff) | |
download | ale-463deedc2998ecf864bb479f07e87aa4e83e3030.zip |
Merge branch 'master' into do-not-save-on-autoimport
Diffstat (limited to 'test/completion')
-rw-r--r-- | test/completion/test_completion_events.vader | 6 | ||||
-rw-r--r-- | test/completion/test_lsp_completion_messages.vader | 2 |
2 files changed, 6 insertions, 2 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'} diff --git a/test/completion/test_lsp_completion_messages.vader b/test/completion/test_lsp_completion_messages.vader index b997ac86..4b7392f5 100644 --- a/test/completion/test_lsp_completion_messages.vader +++ b/test/completion/test_lsp_completion_messages.vader @@ -190,10 +190,8 @@ Execute(The right message sent to the tsserver LSP when the first completion mes \ 'source': '/path/to/foo.ts', \ }, { \ 'name': 'FooBar', - \ 'source': '', \ }, { \ 'name': 'frazzle', - \ 'source': '', \ }], \ 'offset': 1, \ 'line': 1, |