Skip to content

Commit

Permalink
test: test vim-notify
Browse files Browse the repository at this point in the history
  • Loading branch information
teto committed Feb 2, 2021
1 parent bb22c78 commit a90a437
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/functional/api/vim_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,15 @@ describe('API', function()
end)
end)

describe('nvim_notify', function()
it('can be overriden', function()
command("lua vim.notify = function(...) return 42 end")
eq(42, meths.exec_lua("return vim.notify('Hello world')", {}))
nvim("notify", "hello world", 4, {})
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>")
Expand Down

0 comments on commit a90a437

Please sign in to comment.