diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-10-12 16:33:29 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-10-12 16:33:29 +0800 |
commit | ea2795520e68db8737bd6d0ab7a93d5e5a482346 (patch) | |
tree | 5f21f8392ad123497f52ab893e79cb3013879456 /test/hover | |
parent | 896a1affdeed8304688611674df88140a5cc180e (diff) | |
download | lua-language-server-ea2795520e68db8737bd6d0ab7a93d5e5a482346.zip |
cleanup
Diffstat (limited to 'test/hover')
-rw-r--r-- | test/hover/init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua index 6d58f051..c9e1ecdb 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -9,13 +9,13 @@ rawset(_G, 'TEST', true) function TEST(script) return function (expect) local newScript, catched = catch(script, '?') - files.setText('', newScript) - local hover = core.byUri('', catched['?'][1][1]) + files.setText(TESTURI, newScript) + local hover = core.byUri(TESTURI, catched['?'][1][1]) assert(hover) expect = expect:gsub('^[\r\n]*(.-)[\r\n]*$', '%1'):gsub('\r\n', '\n') local label = hover:string():gsub('\r\n', '\n'):match('```lua[\r\n]*(.-)[\r\n]*```') assert(expect == label) - files.remove('') + files.remove(TESTURI) end end |