refactor(test): inject after_each differently

This commit is contained in:
Lewis Russell
2024-04-09 12:26:16 +01:00
committed by Lewis Russell
parent 889f81c65f
commit 81fc27124b
473 changed files with 478 additions and 476 deletions

View File

@@ -1,7 +1,7 @@
-- Test for autocommand that deletes the current buffer on BufLeave event.
-- Also test deleting the last buffer, should give a new, empty buffer.
local t = require('test.functional.testutil')(after_each)
local t = require('test.functional.testutil')()
local clear, feed, insert = t.clear, t.feed, t.insert
local command, expect = t.command, t.expect
local poke_eventloop = t.poke_eventloop