diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-01-12 19:40:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-12 19:40:58 +0000 |
commit | 07a7c0ec999102f223a6aca17e93d33e18c02b94 (patch) | |
tree | 221ea513b45596f8e63035955494167fc20bf826 /test/functional/lua/ui_event_spec.lua | |
parent | 7f249936a989dbc21ad03e394197afc07cb9c0bf (diff) | |
parent | 795f896a5772d5e0795f86642bdf90c82efac45c (diff) | |
download | rneovim-07a7c0ec999102f223a6aca17e93d33e18c02b94.tar.gz rneovim-07a7c0ec999102f223a6aca17e93d33e18c02b94.tar.bz2 rneovim-07a7c0ec999102f223a6aca17e93d33e18c02b94.zip |
Merge pull request #26994 from lewis6991/vimhelpers
test: big cleanup
Diffstat (limited to 'test/functional/lua/ui_event_spec.lua')
-rw-r--r-- | test/functional/lua/ui_event_spec.lua | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/functional/lua/ui_event_spec.lua b/test/functional/lua/ui_event_spec.lua index c0a0b3e762..3e46018682 100644 --- a/test/functional/lua/ui_event_spec.lua +++ b/test/functional/lua/ui_event_spec.lua @@ -4,8 +4,7 @@ local eq = helpers.eq local exec_lua = helpers.exec_lua local clear = helpers.clear local feed = helpers.feed -local funcs = helpers.funcs -local inspect = require 'vim.inspect' +local fn = helpers.fn describe('vim.ui_attach', function() local screen @@ -38,7 +37,7 @@ describe('vim.ui_attach', function() local function expect_events(expected) local evs = exec_lua 'return get_events(...)' - eq(expected, evs, inspect(evs)) + eq(expected, evs, vim.inspect(evs)) end it('can receive popupmenu events', function() @@ -52,7 +51,7 @@ describe('vim.ui_attach', function() ]], } - funcs.complete(1, { 'food', 'foobar', 'foo' }) + fn.complete(1, { 'food', 'foobar', 'foo' }) screen:expect { grid = [[ food^ | @@ -108,7 +107,7 @@ describe('vim.ui_attach', function() end) it('does not crash on exit', function() - funcs.system({ + fn.system({ helpers.nvim_prog, '-u', 'NONE', @@ -148,6 +147,6 @@ describe('vim.ui_attach', function() { 'echomsg', { { 0, 'message3' } } }, }, }, - }, actual, inspect(actual)) + }, actual, vim.inspect(actual)) end) end) |