diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2021-09-01 09:42:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 09:42:53 -0700 |
commit | 6751d6254b35d216a86817cd414d5d06e3ff641d (patch) | |
tree | a2d6f016fb0b610cd4573477b8d133cca64fb871 /test/functional/terminal/tui_spec.lua | |
parent | 0603eba6e713b2bd25cbbb55caf2342b0ccdece9 (diff) | |
download | rneovim-6751d6254b35d216a86817cd414d5d06e3ff641d.tar.gz rneovim-6751d6254b35d216a86817cd414d5d06e3ff641d.tar.bz2 rneovim-6751d6254b35d216a86817cd414d5d06e3ff641d.zip |
refactor(tests): use assert_alive() #15546
Diffstat (limited to 'test/functional/terminal/tui_spec.lua')
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 8a5dd7ef18..f7520b14d4 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -8,12 +8,12 @@ local helpers = require('test.functional.helpers')(after_each) local uname = helpers.uname local thelpers = require('test.functional.terminal.helpers') local Screen = require('test.functional.ui.screen') +local assert_alive = helpers.assert_alive local eq = helpers.eq local feed_command = helpers.feed_command local feed_data = thelpers.feed_data local clear = helpers.clear local command = helpers.command -local eval = helpers.eval local nvim_dir = helpers.nvim_dir local retry = helpers.retry local nvim_prog = helpers.nvim_prog @@ -82,7 +82,7 @@ describe('TUI', function() command('call jobresize(b:terminal_job_id, 1, 4)') screen:try_resize(57, 17) command('call jobresize(b:terminal_job_id, 57, 17)') - eq(2, eval("1+1")) -- Still alive? + assert_alive() end) it('accepts resize while pager is active', function() |