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

@@ -4,8 +4,8 @@
package.path = arg[1]
package.cpath = arg[2]
local StdioStream = require'test.client.uv_stream'.StdioStream
local Session = require'test.client.session'
local StdioStream = require 'test.client.uv_stream'.StdioStream
local Session = require 'test.client.session'
local stdio_stream = StdioStream.open()
local session = Session.new(stdio_stream)
@@ -15,8 +15,8 @@ local function on_request(method, args)
return 'ok'
elseif method == 'write_stderr' then
io.stderr:write(args[1])
return "done!"
elseif method == "exit" then
return 'done!'
elseif method == 'exit' then
session:stop()
return vim.NIL
end
@@ -24,7 +24,7 @@ end
local function on_notification(event, args)
if event == 'ping' and #args == 0 then
session:notify("nvim_eval", "rpcnotify(g:channel, 'pong')")
session:notify('nvim_eval', "rpcnotify(g:channel, 'pong')")
end
end