api: add tests for calling the api from vimscript

This commit is contained in:
Björn Linse
2016-07-15 20:35:31 +02:00
parent 1c22cab2fd
commit 98a08c3e5a
2 changed files with 148 additions and 9 deletions

View File

@@ -2,7 +2,6 @@ local helpers = require('test.functional.helpers')(after_each)
local clear = helpers.clear
local eq = helpers.eq
local eval = helpers.eval
local exc_exec = helpers.exc_exec
describe('Up to MAX_FUNC_ARGS arguments are handled by', function()
@@ -28,11 +27,3 @@ describe('Up to MAX_FUNC_ARGS arguments are handled by', function()
eq('Vim(call):E740: Too many arguments for function rpcnotify', ret)
end)
end)
describe('api_info()', function()
before_each(clear)
it('has the right keys', function()
local api_keys = eval("sort(keys(api_info()))")
eq({'error_types', 'functions', 'types'}, api_keys)
end)
end)