refactor: format test/*

This commit is contained in:
Justin M. Keyes
2024-01-03 02:09:18 +01:00
parent 59d117ec99
commit 04f2f864e2
363 changed files with 30631 additions and 20833 deletions

View File

@@ -36,11 +36,12 @@ describe('wait()', function()
end)
it('returns -2 when interrupted', function()
feed_command('call rpcnotify(g:channel, "ready") | '..
'call rpcnotify(g:channel, "wait", wait(-1, 0))')
eq({'notification', 'ready', {}}, next_msg())
feed_command(
'call rpcnotify(g:channel, "ready") | ' .. 'call rpcnotify(g:channel, "wait", wait(-1, 0))'
)
eq({ 'notification', 'ready', {} }, next_msg())
feed('<c-c>')
eq({'notification', 'wait', {-2}}, next_msg())
eq({ 'notification', 'wait', { -2 } }, next_msg())
end)
it('returns -3 on error', function()