Update test

This commit is contained in:
KillTheMule 2018-04-24 21:41:59 +02:00
parent e7451f8a91
commit 3866137eed

View File

@ -1,6 +1,6 @@
local helpers = require('test.functional.helpers')(after_each) local helpers = require('test.functional.helpers')(after_each)
local eq, ok = helpers.eq, helpers.ok local eq, ok = helpers.eq, helpers.ok
local buffer, command, eval, nvim, next_message = helpers.buffer, local buffer, command, eval, nvim, next_msg = helpers.buffer,
helpers.command, helpers.eval, helpers.nvim, helpers.next_msg helpers.command, helpers.eval, helpers.nvim, helpers.next_msg
local origlines = {"original line 1", local origlines = {"original line 1",
@ -12,7 +12,7 @@ local origlines = {"original line 1",
local function expectn(name, args) local function expectn(name, args)
-- expect the next message to be the specified notification event -- expect the next message to be the specified notification event
eq({'notification', name, args}, next_message()) eq({'notification', name, args}, next_msg())
end end
local function sendkeys(keys) local function sendkeys(keys)
@ -88,8 +88,8 @@ local function reopenwithfolds(b)
return tick return tick
end end
describe('liveupdate', function() describe('buffer events', function()
it('knows when you add line to a buffer', function() it('when you add line to a buffer', function()
local b, tick = editoriginal(true) local b, tick = editoriginal(true)
-- add a new line at the start of the buffer -- add a new line at the start of the buffer