aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/buffer_updates_spec.lua
diff options
context:
space:
mode:
authorKillTheMule <KillTheMule@users.noreply.github.com>2018-04-24 21:41:59 +0200
committerKillTheMule <KillTheMule@users.noreply.github.com>2018-05-23 22:07:27 +0200
commit3866137eed6b6e649ac95e53ad246e977f9ac2ae (patch)
treeccc7b62142ab29f4153f061ed41893703eef80f6 /test/functional/api/buffer_updates_spec.lua
parente7451f8a91e0a9452fc3c3627ac60dc80288252c (diff)
downloadrneovim-3866137eed6b6e649ac95e53ad246e977f9ac2ae.tar.gz
rneovim-3866137eed6b6e649ac95e53ad246e977f9ac2ae.tar.bz2
rneovim-3866137eed6b6e649ac95e53ad246e977f9ac2ae.zip
Update test
Diffstat (limited to 'test/functional/api/buffer_updates_spec.lua')
-rw-r--r--test/functional/api/buffer_updates_spec.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/api/buffer_updates_spec.lua b/test/functional/api/buffer_updates_spec.lua
index 7659961e90..0eec59bd65 100644
--- a/test/functional/api/buffer_updates_spec.lua
+++ b/test/functional/api/buffer_updates_spec.lua
@@ -1,6 +1,6 @@
local helpers = require('test.functional.helpers')(after_each)
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
local origlines = {"original line 1",
@@ -12,7 +12,7 @@ local origlines = {"original line 1",
local function expectn(name, args)
-- expect the next message to be the specified notification event
- eq({'notification', name, args}, next_message())
+ eq({'notification', name, args}, next_msg())
end
local function sendkeys(keys)
@@ -88,8 +88,8 @@ local function reopenwithfolds(b)
return tick
end
-describe('liveupdate', function()
- it('knows when you add line to a buffer', function()
+describe('buffer events', function()
+ it('when you add line to a buffer', function()
local b, tick = editoriginal(true)
-- add a new line at the start of the buffer