robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Justin M. KeyesMerge #40865 from justinmk/fixcif907614088

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