aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/functional/autocmd/autocmd_spec.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/autocmd/autocmd_spec.lua b/test/functional/autocmd/autocmd_spec.lua
index 72aff58d73..162e112047 100644
--- a/test/functional/autocmd/autocmd_spec.lua
+++ b/test/functional/autocmd/autocmd_spec.lua
@@ -2,6 +2,7 @@ local helpers = require('test.functional.helpers')(after_each)
local clear = helpers.clear
local command = helpers.command
+local eq = helpers.eq
local eval = helpers.eval
describe('autocmds:', function()
@@ -28,4 +29,8 @@ describe('autocmds:', function()
command('tabnew')
assert.same(expected, eval('g:foo'))
end)
+
+ it('v:vim_did_enter is 1 after VimEnter', function()
+ eq(1, eval('v:vim_did_enter'))
+ end)
end)