mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
test: don't call clear() in both before_each() and after_each()
This commit is contained in:
@@ -9,7 +9,6 @@ describe('vim.lsp.codelens', function()
|
||||
n.clear()
|
||||
exec_lua('require("vim.lsp")')
|
||||
end)
|
||||
after_each(n.clear)
|
||||
|
||||
it('on_codelens_stores_and_displays_lenses', function()
|
||||
local fake_uri = 'file:///fake/uri'
|
||||
|
@@ -863,8 +863,6 @@ describe('vim.lsp.completion: protocol', function()
|
||||
end)
|
||||
end)
|
||||
|
||||
after_each(clear)
|
||||
|
||||
local function assert_matches(fn)
|
||||
retry(nil, nil, function()
|
||||
fn(exec_lua('return _G.capture.matches'))
|
||||
@@ -1262,8 +1260,6 @@ describe('vim.lsp.completion: integration', function()
|
||||
end)
|
||||
end)
|
||||
|
||||
after_each(clear)
|
||||
|
||||
it('puts cursor at the end of completed word', function()
|
||||
local completion_list = {
|
||||
isIncomplete = false,
|
||||
|
@@ -115,10 +115,6 @@ describe('vim.lsp.diagnostic', function()
|
||||
end)
|
||||
end)
|
||||
|
||||
after_each(function()
|
||||
clear()
|
||||
end)
|
||||
|
||||
describe('vim.lsp.diagnostic.on_publish_diagnostics', function()
|
||||
it('correctly handles UTF-16 offsets', function()
|
||||
local line = 'All 💼 and no 🎉 makes Jack a dull 👦'
|
||||
|
@@ -9,7 +9,6 @@ local exec_lua = n.exec_lua
|
||||
|
||||
describe('vim.lsp._snippet_grammar', function()
|
||||
before_each(n.clear)
|
||||
after_each(n.clear)
|
||||
|
||||
local parse = function(...)
|
||||
local res = exec_lua('return require("vim.lsp._snippet_grammar").parse(...)', ...)
|
||||
|
Reference in New Issue
Block a user