test: remove a few more redundant clear() calls

This commit is contained in:
zeertzjq
2025-09-24 13:10:32 +08:00
parent 0837a1ec2e
commit 2af99811f7
14 changed files with 13 additions and 40 deletions

View File

@@ -14,8 +14,6 @@ local poke_eventloop = n.poke_eventloop
before_each(clear)
describe('treesitter foldexpr', function()
clear()
before_each(function()
-- open folds to avoid deleting entire folded region
exec_lua([[vim.opt.foldlevel = 9]])

View File

@@ -14,8 +14,6 @@ local function lua_eval(lua_expr)
end
describe('treesitter node API', function()
clear()
it('double free tree', function()
insert('F')
exec_lua(function()

View File

@@ -9,8 +9,6 @@ local exec_lua = n.exec_lua
before_each(clear)
describe('treesitter utils', function()
before_each(clear)
it('can find an ancestor', function()
insert([[
int main() {