diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-12-24 17:03:18 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-12-24 17:03:18 +0800 |
commit | ef6c3fe05addbd299e4fc6e45cec94a83886c18f (patch) | |
tree | 9e526e2c558fab376874172aa51a00e800d4ce4b /test/hover/init.lua | |
parent | b7344640a0ab9a07551ee5ebc435657b45659553 (diff) | |
download | lua-language-server-ef6c3fe05addbd299e4fc6e45cec94a83886c18f.zip |
cleanup
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r-- | test/hover/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua index 35274384..c0d5bc94 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -23,7 +23,6 @@ local accept = { ---@diagnostic disable: await-in-sync function TEST(script) return function (expect) - files.removeAll() local newScript, catched = catch(script, '?') files.setText('', newScript) local hover = core.byUri('', catched['?'][1][1]) @@ -31,6 +30,7 @@ function TEST(script) expect = expect:gsub('^[\r\n]*(.-)[\r\n]*$', '%1'):gsub('\r\n', '\n') local label = tostring(hover):match('```lua[\r\n]*(.-)[\r\n]*```'):gsub('\r\n', '\n') assert(expect == label) + files.remove('') end end |