diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-04-20 14:16:41 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-20 14:16:41 -0400 |
| commit | 4ceca862fceb021049144a9aed05c60ae39b7aba (patch) | |
| tree | b7b1f1e421aeeaa2d30a348745c17f9f9b69b8d7 /test/functional/vimscript/null_spec.lua | |
| parent | faa7c15b5a711435ed9d90f7fbf2a2ff8f1255c7 (diff) | |
| download | rneovim-4ceca862fceb021049144a9aed05c60ae39b7aba.tar.gz rneovim-4ceca862fceb021049144a9aed05c60ae39b7aba.tar.bz2 rneovim-4ceca862fceb021049144a9aed05c60ae39b7aba.zip | |
refactor(test): drop deprecated exc_exec #39242
Diffstat (limited to 'test/functional/vimscript/null_spec.lua')
| -rw-r--r-- | test/functional/vimscript/null_spec.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/functional/vimscript/null_spec.lua b/test/functional/vimscript/null_spec.lua index afd50f7cf9..8dbf44805d 100644 --- a/test/functional/vimscript/null_spec.lua +++ b/test/functional/vimscript/null_spec.lua @@ -1,7 +1,6 @@ local t = require('test.testutil') local n = require('test.functional.testnvim')() -local exc_exec = n.exc_exec local command = n.command local clear = n.clear local api = n.api @@ -35,7 +34,11 @@ describe('NULL', function() end) local null_test = function(name, cmd, err) it(name, function() - eq(err, exc_exec(cmd)) + if err == 0 then + command(cmd) + else + eq(err, t.pcall_err(command, cmd)) + end end) end local null_expr_test = function(name, expr, err, val, after) |