From 4528a69c8772a5fe182fb293b929dfcfad112abc Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 11 Apr 2024 08:51:06 +0800 Subject: test: remove unnecessary nil argument to testutil (#28270) --- test/functional/ui/embed_spec.lua | 2 +- test/functional/ui/output_spec.lua | 2 +- test/functional/ui/screen.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test/functional/ui') diff --git a/test/functional/ui/embed_spec.lua b/test/functional/ui/embed_spec.lua index c10781e792..934f00b288 100644 --- a/test/functional/ui/embed_spec.lua +++ b/test/functional/ui/embed_spec.lua @@ -233,7 +233,7 @@ describe('--embed UI', function() } eq({ [16777215] = true }, seen) - -- NB: by accident how functional/t.lua currently handles the default color scheme, the + -- NB: by accident how functional/testutil.lua currently handles the default color scheme, the -- above is sufficient to test the behavior. But in case that workaround is removed, we need -- a test with an explicit override like below, so do it to remain safe. startup('--cmd', 'hi NORMAL guibg=#FF00FF') diff --git a/test/functional/ui/output_spec.lua b/test/functional/ui/output_spec.lua index c8315e99b5..b09f1e0d03 100644 --- a/test/functional/ui/output_spec.lua +++ b/test/functional/ui/output_spec.lua @@ -81,7 +81,7 @@ describe('shell command :!', function() {3:-- TERMINAL --} | ]], { - -- test/functional/t.lua defaults to background=light. + -- test/functional/testutil.lua defaults to background=light. [1] = { reverse = true }, [3] = { bold = true }, [10] = { foreground = 2 }, diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index b08a5b93a6..a9b3fb80d3 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -70,7 +70,7 @@ -- To help write screen tests, see Screen:snapshot_util(). -- To debug screen tests, see Screen:redraw_debug(). -local t = require('test.functional.testutil')(nil) +local t = require('test.functional.testutil')() local busted = require('busted') local deepcopy = vim.deepcopy local shallowcopy = t.shallowcopy -- cgit