mirror of
https://github.com/neovim/neovim.git
synced 2026-07-31 04:39:07 +00:00
test(api): normalize context comparisons #40854
This commit is contained in:
@@ -333,10 +333,10 @@ describe('api: optional parameters', function()
|
||||
end)
|
||||
|
||||
it('omitted is equivalent to empty dict', function()
|
||||
eq(api.nvim_get_context({}), api.nvim_get_context()) -- RPC path
|
||||
eq(n.parse_context(api.nvim_get_context({})), n.parse_context(api.nvim_get_context())) -- RPC path
|
||||
eq(
|
||||
n.exec_lua('return vim.api.nvim_get_context({})'),
|
||||
n.exec_lua('return vim.api.nvim_get_context()')
|
||||
n.parse_context(n.exec_lua('return vim.api.nvim_get_context({})')),
|
||||
n.parse_context(n.exec_lua('return vim.api.nvim_get_context()'))
|
||||
) -- Lua-binding path
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user