aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/api_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2026-04-15 13:31:17 -0400
committerGitHub <noreply@github.com>2026-04-15 13:31:17 -0400
commit71ac4db335e00b03b27d2c4aa5ab90c083a3a3e7 (patch)
tree4d2d0cca06dfd2049ac9c3789a7efd2f32b4f9bf /test/functional/lua/api_spec.lua
parent1740d51eded3cd9b8244470b3e79d467598301ed (diff)
downloadrneovim-71ac4db335e00b03b27d2c4aa5ab90c083a3a3e7.tar.gz
rneovim-71ac4db335e00b03b27d2c4aa5ab90c083a3a3e7.tar.bz2
rneovim-71ac4db335e00b03b27d2c4aa5ab90c083a3a3e7.zip
refactor(api): rename "window" to "win" (positional parameters) #39083
continues d0af4cd9094f. This commit renames positional parameters. This is only "cosmetic", but is intended to make it extra clear which name is preferred, since people often copy existing code despite the guidelines in `:help dev-naming`.
Diffstat (limited to 'test/functional/lua/api_spec.lua')
-rw-r--r--test/functional/lua/api_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/lua/api_spec.lua b/test/functional/lua/api_spec.lua
index 3bc66de0e6..0332c85294 100644
--- a/test/functional/lua/api_spec.lua
+++ b/test/functional/lua/api_spec.lua
@@ -300,7 +300,7 @@ describe('luaeval(vim.api.…)', function()
)
end)
- it('errors out correctly when working with API', function()
+ it('validation', function()
-- Conversion errors
eq(
[[Vim(call):E5108: Lua: [string "luaeval()"]:1: Invalid 'obj': Cannot convert given Lua table]],
@@ -334,7 +334,7 @@ describe('luaeval(vim.api.…)', function()
remove_trace(exc_exec([[call luaeval("vim.api.nvim_buf_get_lines(0, 1.5, 1, false)")]]))
)
eq(
- [[Vim(call):E5108: Lua: [string "luaeval()"]:1: Invalid 'window': Expected Lua number]],
+ [[Vim(call):E5108: Lua: [string "luaeval()"]:1: Invalid 'win': Expected Lua number]],
remove_trace(exc_exec([[call luaeval("vim.api.nvim_win_is_valid(nil)")]]))
)