mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 23:48:32 +00:00
test: don't call clear() in both before_each() and after_each() (#35901)
This commit is contained in:
@@ -5,7 +5,6 @@ local eq = t.eq
|
||||
|
||||
describe('glob', function()
|
||||
before_each(n.clear)
|
||||
after_each(n.clear)
|
||||
|
||||
local match = function(pattern, str)
|
||||
return n.exec_lua(function()
|
||||
|
@@ -9,7 +9,6 @@ local insert = n.insert
|
||||
|
||||
describe('vim.pos', function()
|
||||
before_each(clear)
|
||||
after_each(clear)
|
||||
|
||||
it('creates a position with or without optional fields', function()
|
||||
local pos = exec_lua(function()
|
||||
|
@@ -9,7 +9,6 @@ local insert = n.insert
|
||||
|
||||
describe('vim.range', function()
|
||||
before_each(clear)
|
||||
after_each(clear)
|
||||
|
||||
it('creates a range with or without optional fields', function()
|
||||
local range = exec_lua(function()
|
||||
|
@@ -33,7 +33,6 @@ describe('vim.snippet', function()
|
||||
set_snippet_jump(-1, '<S-Tab>')
|
||||
end)
|
||||
end)
|
||||
after_each(clear)
|
||||
|
||||
--- @param snippet string[]
|
||||
--- @param expected string[]
|
||||
|
Reference in New Issue
Block a user