diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2023-03-26 10:49:32 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-26 10:49:32 +0800 |
| commit | 4863ca6b8902c5b0aab95f2af640118cd417d379 (patch) | |
| tree | 41a1ecb32984dc88f25df722abaf3ba381db3cf3 /test/functional/options | |
| parent | 4eef5ac453866dae7c03f5432fc8c4dfcda19f54 (diff) | |
| download | rneovim-4863ca6b8902c5b0aab95f2af640118cd417d379.tar.gz rneovim-4863ca6b8902c5b0aab95f2af640118cd417d379.tar.bz2 rneovim-4863ca6b8902c5b0aab95f2af640118cd417d379.zip | |
test: use exec_capture() in more places (#22787)
Problem:
Using `meths.exec2("code", { output = true })` is too verbose.
Solution:
Use exec_capture() in more places.
Diffstat (limited to 'test/functional/options')
| -rw-r--r-- | test/functional/options/keymap_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/options/keymap_spec.lua b/test/functional/options/keymap_spec.lua index 7ff86438b2..c390e3d943 100644 --- a/test/functional/options/keymap_spec.lua +++ b/test/functional/options/keymap_spec.lua @@ -2,7 +2,7 @@ local helpers = require('test.functional.helpers')(after_each) local clear, feed, eq = helpers.clear, helpers.feed, helpers.eq local expect, command, eval = helpers.expect, helpers.command, helpers.eval local insert, call = helpers.insert, helpers.call -local funcs, dedent = helpers.funcs, helpers.dedent +local exec_capture, dedent = helpers.exec_capture, helpers.dedent -- First test it's implemented using the :lmap and :lnoremap commands, then -- check those mappings behave as expected. @@ -30,7 +30,7 @@ describe("'keymap' / :lmap", function() command('lmapclear <buffer>') command('set keymap=dvorak') command('set nomore') - local bindings = funcs.nvim_exec2('lmap', { output = true }).output + local bindings = exec_capture('lmap') eq(dedent([[ l " @_ |