diff options
Diffstat (limited to 'test/crossfile/hover.lua')
-rw-r--r-- | test/crossfile/hover.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua index 492efe43..cb9e83aa 100644 --- a/test/crossfile/hover.lua +++ b/test/crossfile/hover.lua @@ -39,8 +39,6 @@ end ---@diagnostic disable: await-in-sync function TEST(expect) - files.removeAll() - local sourcePos, sourceUri for _, file in ipairs(expect) do local script, list = catch(file.content, '?') @@ -52,6 +50,12 @@ function TEST(expect) end end + local _ <close> = function () + for _, info in ipairs(expect) do + files.remove(furi.encode(info.path)) + end + end + local hover = core.byUri(sourceUri, sourcePos) assert(hover) hover = tostring(hover):gsub('\r\n', '\n') |