mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
test: rename (meths, funcs) -> (api, fn)
This commit is contained in:
@@ -2,7 +2,7 @@ local helpers = require('test.functional.helpers')(after_each)
|
||||
local clear, command = helpers.clear, helpers.command
|
||||
local expect, feed = helpers.expect, helpers.feed
|
||||
local eq, eval = helpers.eq, helpers.eval
|
||||
local funcs = helpers.funcs
|
||||
local fn = helpers.fn
|
||||
|
||||
describe(':emenu', function()
|
||||
before_each(function()
|
||||
@@ -80,7 +80,7 @@ describe('menu_get', function()
|
||||
end)
|
||||
|
||||
it("path='', modes='a'", function()
|
||||
local m = funcs.menu_get('', 'a')
|
||||
local m = fn.menu_get('', 'a')
|
||||
-- HINT: To print the expected table and regenerate the tests:
|
||||
-- print(require('vim.inspect')(m))
|
||||
local expected = {
|
||||
@@ -308,7 +308,7 @@ describe('menu_get', function()
|
||||
end)
|
||||
|
||||
it('matching path, all modes', function()
|
||||
local m = funcs.menu_get('Export', 'a')
|
||||
local m = fn.menu_get('Export', 'a')
|
||||
local expected = {
|
||||
{
|
||||
hidden = 0,
|
||||
@@ -337,7 +337,7 @@ describe('menu_get', function()
|
||||
end)
|
||||
|
||||
it('no path, matching modes', function()
|
||||
local m = funcs.menu_get('', 'i')
|
||||
local m = fn.menu_get('', 'i')
|
||||
local expected = {
|
||||
{
|
||||
shortcut = 'T',
|
||||
@@ -366,7 +366,7 @@ describe('menu_get', function()
|
||||
end)
|
||||
|
||||
it('matching path and modes', function()
|
||||
local m = funcs.menu_get('Test', 'i')
|
||||
local m = fn.menu_get('Test', 'i')
|
||||
local expected = {
|
||||
{
|
||||
shortcut = 'T',
|
||||
@@ -412,7 +412,7 @@ describe('menu_get', function()
|
||||
command('nnoremenu &Test.Test8 <NoP>')
|
||||
command('nnoremenu &Test.Test9 ""')
|
||||
|
||||
local m = funcs.menu_get('')
|
||||
local m = fn.menu_get('')
|
||||
local expected = {
|
||||
{
|
||||
shortcut = 'T',
|
||||
@@ -565,7 +565,7 @@ describe('menu_get', function()
|
||||
command('nnoremenu &Test\\ 1.Test\\ 2 Wargl')
|
||||
command('nnoremenu &Test4.Test<Tab>3 i space<Esc>')
|
||||
|
||||
local m = funcs.menu_get('')
|
||||
local m = fn.menu_get('')
|
||||
local expected = {
|
||||
{
|
||||
shortcut = 'T',
|
||||
|
||||
Reference in New Issue
Block a user