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

@@ -11,8 +11,12 @@ describe('api', function()
before_each(function()
helpers.clear()
os.remove(socket_name)
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,
})
end)
after_each(function()
os.remove(socket_name)