blob: 2efcfda873e1b4f24550f9aa1939a5f66ab36b2f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
-- Island of misfit toys.
--- @diagnostic disable: deprecated
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
describe('deprecated', function()
before_each(n.clear)
describe('nvim_notify', function()
it('can notify a info message', function()
n.api.nvim_notify('hello world', 2, {})
end)
it('can be overridden', function()
n.command('lua vim.notify = function(...) return 42 end')
t.eq(42, n.api.nvim_exec_lua("return vim.notify('Hello world')", {}))
n.api.nvim_notify('hello world', 4, {})
end)
end)
end)
|