mirror of
https://github.com/neovim/neovim.git
synced 2026-02-18 17:38:32 +00:00
fix(notify): Expected 3 arguments error (#13905)
This commit is contained in:
@@ -476,6 +476,10 @@ describe('API', function()
|
||||
end)
|
||||
|
||||
describe('nvim_notify', function()
|
||||
it('can notify a info message', function()
|
||||
nvim("notify", "hello world", 2, {})
|
||||
end)
|
||||
|
||||
it('can be overriden', function()
|
||||
command("lua vim.notify = function(...) return 42 end")
|
||||
eq(42, meths.exec_lua("return vim.notify('Hello world')", {}))
|
||||
@@ -483,7 +487,6 @@ describe('API', function()
|
||||
end)
|
||||
end)
|
||||
|
||||
|
||||
describe('nvim_input', function()
|
||||
it("VimL error: does NOT fail, updates v:errmsg", function()
|
||||
local status, _ = pcall(nvim, "input", ":call bogus_fn()<CR>")
|
||||
|
||||
Reference in New Issue
Block a user