blob: 638ca16639c40e45ba8d9d5e5e07f21094d295c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear = n.clear
local exec_capture = n.exec_capture
local exec_lua = n.exec_lua
local matches = t.matches
describe(':uptime', function()
it('works', function()
clear()
matches([[Up %d+ seconds?]], exec_capture('uptime'))
end)
it('works without runtime', function()
clear {
args_rm = { '-u' },
args = { '-u', 'NONE' },
env = { VIMRUNTIME = 'non-existent' },
}
exec_lua(function()
vim.cmd('uptime')
end)
end)
end)
|