test: remove a few more redundant clear() calls (#35903)

This commit is contained in:
zeertzjq
2025-09-24 14:25:54 +08:00
committed by GitHub
parent b256e0476b
commit eb7c12d3e3
14 changed files with 13 additions and 40 deletions

View File

@@ -48,8 +48,6 @@ describe("api_info()['version']", function()
end)
describe('api metadata', function()
before_each(clear)
local function name_table(entries)
local by_name = {}
for _, e in ipairs(entries) do
@@ -149,6 +147,8 @@ describe('api metadata', function()
clean_level_0(old_api[level])
end
end
-- No Nvim session will be used in the following tests.
n.check_close()
end)
it('functions are compatible with old metadata or have new level', function()