summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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({