test: set notermguicolors in tests

Set 'notermguicolors' in tests which spawn a child Nvim process to force
existing tests to use 16 colors. Also refactor the child process
invocation to make things a little bit less messy.
This commit is contained in:
Gregory Anders
2023-12-05 14:26:46 -08:00
parent 2613ba5000
commit a5a346678a
9 changed files with 198 additions and 124 deletions

View File

@@ -21,8 +21,12 @@ describe("shell command :!", function()
local screen
before_each(function()
clear()
screen = child_session.screen_setup(0, '["'..helpers.nvim_prog..
'", "-u", "NONE", "-i", "NONE", "--cmd", "colorscheme vim", "--cmd", "'..helpers.nvim_set..'"]')
screen = child_session.setup_child_nvim({
'-u', 'NONE',
'-i', 'NONE',
'--cmd', 'colorscheme vim',
'--cmd', helpers.nvim_set,
})
screen:expect([[
{1: } |
{4:~ }|