diff options
author | Gregory Anders <greg@gpanders.com> | 2023-12-05 14:26:46 -0800 |
---|---|---|
committer | Gregory Anders <greg@gpanders.com> | 2023-12-06 10:38:44 -0800 |
commit | a5a346678a8211ea07f318de42e557ad3909f65e (patch) | |
tree | 7582752e1e60dbe8accd0e22ecedd2d814fe525f /test/functional/terminal/api_spec.lua | |
parent | 2613ba5000d4c0d9b15e2eec2d2b97615575925e (diff) | |
download | rneovim-a5a346678a8211ea07f318de42e557ad3909f65e.tar.gz rneovim-a5a346678a8211ea07f318de42e557ad3909f65e.tar.bz2 rneovim-a5a346678a8211ea07f318de42e557ad3909f65e.zip |
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.
Diffstat (limited to 'test/functional/terminal/api_spec.lua')
-rw-r--r-- | test/functional/terminal/api_spec.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/functional/terminal/api_spec.lua b/test/functional/terminal/api_spec.lua index c278b2ad0e..68082ba4fa 100644 --- a/test/functional/terminal/api_spec.lua +++ b/test/functional/terminal/api_spec.lua @@ -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) |