aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/hlstate_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2022-06-22 05:51:52 -0700
committerJustin M. Keyes <justinkz@gmail.com>2022-06-25 08:27:17 -0700
commitf977f9445f7689fc32a136108ff92b3c2137968c (patch)
tree34c4abe44693550d88221cbd140828d2657dcd7a /test/functional/ui/hlstate_spec.lua
parent0b9664f5240be4d9e9d6882fcd398970fd3a9532 (diff)
downloadrneovim-f977f9445f7689fc32a136108ff92b3c2137968c.tar.gz
rneovim-f977f9445f7689fc32a136108ff92b3c2137968c.tar.bz2
rneovim-f977f9445f7689fc32a136108ff92b3c2137968c.zip
refactor(tests): introduce testprg()
Also: - Add a describe('shell :!') section to system_spec. - Make the test for #16271 work on systems without powershell.
Diffstat (limited to 'test/functional/ui/hlstate_spec.lua')
-rw-r--r--test/functional/ui/hlstate_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/ui/hlstate_spec.lua b/test/functional/ui/hlstate_spec.lua
index 925af11627..df7f34aa7f 100644
--- a/test/functional/ui/hlstate_spec.lua
+++ b/test/functional/ui/hlstate_spec.lua
@@ -5,7 +5,7 @@ local clear, insert = helpers.clear, helpers.insert
local command = helpers.command
local meths = helpers.meths
local iswin = helpers.iswin
-local nvim_dir = helpers.nvim_dir
+local testprg = helpers.testprg
local thelpers = require('test.functional.terminal.helpers')
describe('ext_hlstate detailed highlights', function()
@@ -191,7 +191,7 @@ describe('ext_hlstate detailed highlights', function()
[6] = {{foreground = tonumber('0x40ffff'), fg_indexed=true}, {5, 1}},
[7] = {{}, {{hi_name = "MsgArea", ui_name = "MsgArea", kind = "ui"}}},
})
- command('enew | call termopen(["'..nvim_dir..'/tty-test"])')
+ command(("enew | call termopen(['%s'])"):format(testprg('tty-test')))
screen:expect([[
^tty ready |
{1: } |