summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-07-24 09:23:53 +0100
committerw0rp <devw0rp@gmail.com>2017-07-24 09:23:53 +0100
commite0c014ab8c5e687daf9954108c31e1fa19a68c43 (patch)
tree5d883480f298399793f4708b16ff55e9c1668c49 /test
parentb4d23d700bb71a192b48671e6a0428312b46a74b (diff)
downloadale-e0c014ab8c5e687daf9954108c31e1fa19a68c43.zip
Disable completion in the Vader test if we temporarily enable it
Diffstat (limited to 'test')
-rw-r--r--test/test_completion.vader10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_completion.vader b/test/test_completion.vader
index ce7a8ef3..f971f44c 100644
--- a/test/test_completion.vader
+++ b/test/test_completion.vader
@@ -1,3 +1,13 @@
+Before:
+ Save g:ale_completion_enabled
+
+After:
+ Restore
+
+ if !g:ale_completion_enabled
+ call ale#completion#Disable()
+ endif
+
Execute(TypeScript completions responses should be parsed correctly):
AssertEqual [],
\ ale#completion#ParseTSServerCompletions({