From ea2795520e68db8737bd6d0ab7a93d5e5a482346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 12 Oct 2022 16:33:29 +0800 Subject: cleanup --- test/hover/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/hover') 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 -- cgit v1.2.3