robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
f907614088
master
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 () 11it ( 'works' , function () 12clear () 13matches ( [[Up %d+ seconds?]] , exec_capture ( 'uptime' )) 14end ) 15 16it ( 'works without runtime' , function () 17clear { 18args_rm ={ '-u' } , 19args ={ '-u' , 'NONE' } , 20env ={ VIMRUNTIME ='non-existent' } , 21} 22exec_lua ( function () 23vim . cmd ( 'uptime' ) 24end ) 25end ) 26end )