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,6 +1,6 @@
-- Test clipboard provider support
local t = require('test.functional.testutil')(after_each)
local t = require('test.functional.testutil')()
local Screen = require('test.functional.ui.screen')
local clear, feed, insert = t.clear, t.feed, t.insert
local feed_command, expect, eq, eval, source = t.feed_command, t.expect, t.eq, t.eval, t.source

View File

@@ -1,4 +1,4 @@
local t = require('test.functional.testutil')(after_each)
local t = require('test.functional.testutil')()
local eval, command = t.eval, t.command
local eq, run, stop = t.eq, t.run, t.stop
local clear = t.clear

View File

@@ -1,4 +1,4 @@
local t = require('test.functional.testutil')(after_each)
local t = require('test.functional.testutil')()
local eq, clear = t.eq, t.clear
local missing_provider = t.missing_provider
local command = t.command

View File

@@ -1,4 +1,4 @@
local t = require('test.functional.testutil')(after_each)
local t = require('test.functional.testutil')()
local eq, clear = t.eq, t.clear
local missing_provider = t.missing_provider
local command = t.command

View File

@@ -1,4 +1,4 @@
local t = require('test.functional.testutil')(after_each)
local t = require('test.functional.testutil')()
local clear, eval = t.clear, t.eval
local command = t.command
local eq = t.eq

View File

@@ -1,4 +1,4 @@
local t = require('test.functional.testutil')(after_each)
local t = require('test.functional.testutil')()
local assert_alive = t.assert_alive
local eval, command, feed = t.eval, t.command, t.feed
local eq, clear, insert = t.eq, t.clear, t.insert

View File

@@ -1,4 +1,4 @@
local t = require('test.functional.testutil')(after_each)
local t = require('test.functional.testutil')()
local assert_alive = t.assert_alive
local clear = t.clear