blob: 39352a82f3dc7bfa660fdb8b256b898164c9d4d4 (
plain) (
blame)
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
26
|
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local describe, it = t.describe, t.it
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)
|