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/autocmd | |
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/autocmd')
-rw-r--r-- | test/functional/autocmd/focus_spec.lua | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/functional/autocmd/focus_spec.lua b/test/functional/autocmd/focus_spec.lua index c72842f14b..204bfcaa12 100644 --- a/test/functional/autocmd/focus_spec.lua +++ b/test/functional/autocmd/focus_spec.lua @@ -2,7 +2,6 @@ local helpers = require('test.functional.helpers')(after_each) local thelpers = require('test.functional.terminal.helpers') local luv = require('luv') local clear = helpers.clear -local nvim_prog = helpers.nvim_prog local feed_command = helpers.feed_command local feed_data = thelpers.feed_data @@ -14,10 +13,12 @@ describe('autoread TUI FocusGained/FocusLost', function() before_each(function() clear() - screen = thelpers.screen_setup( - 0, - '["'..nvim_prog..'", "-u", "NONE", "-i", "NONE", "--cmd", "colorscheme vim", "--cmd", "set noswapfile noshowcmd noruler"]' - ) + screen = thelpers.setup_child_nvim({ + '-u', 'NONE', + '-i', 'NONE', + '--cmd', 'colorscheme vim', + '--cmd', 'set noswapfile noshowcmd noruler notermguicolors', + }) end) teardown(function() |