summaryrefslogtreecommitdiff
path: root/test/completion/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/completion/init.lua')
-rw-r--r--test/completion/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/completion/init.lua b/test/completion/init.lua
index 11d39252..89325883 100644
--- a/test/completion/init.lua
+++ b/test/completion/init.lua
@@ -65,11 +65,9 @@ ContinueTyping = false
function TEST(script)
return function (expect)
---@diagnostic disable: await-in-sync
- files.removeAll()
local newScript, catched = catch(script, '?')
files.setText('', newScript)
- core.clearCache()
local inputPos = catched['?'][1][1]
if ContinueTyping then
local triggerCharacter = script:sub(inputPos - 1, inputPos - 1)
@@ -77,6 +75,7 @@ function TEST(script)
end
local triggerCharacter = script:sub(inputPos, inputPos)
local result = core.completion('', inputPos, triggerCharacter)
+
if not expect then
assert(result == nil)
return
@@ -116,6 +115,7 @@ function TEST(script)
else
assert(eq(expect, result))
end
+ files.remove('')
end
end