refactor(tests): remove boilerplate even further
This commit is contained in:
parent
b2780c8efb
commit
2ca302a7a5
6 changed files with 35 additions and 60 deletions
|
|
@ -1,17 +1,9 @@
|
|||
local t = require "spec.testutils"
|
||||
|
||||
local child = MiniTest.new_child_neovim()
|
||||
local T = MiniTest.new_set {
|
||||
hooks = {
|
||||
post_once = child.stop,
|
||||
pre_case = function()
|
||||
child.restart { "-u", t.mininit_path }
|
||||
end,
|
||||
},
|
||||
}
|
||||
local child, T = t.setup()
|
||||
|
||||
local function do_the_test(fixture, pos)
|
||||
local rs = t.setup("comment/" .. fixture, child, pos)
|
||||
local rs = t.setup_test("comment/" .. fixture, child, pos)
|
||||
child.cmd "GoCmt"
|
||||
child.cmd "write"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue