menu_get(): doc

This commit is contained in:
Justin M. Keyes
2017-07-28 02:31:03 +02:00
parent dc685387a3
commit 3b45f676c0
5 changed files with 48 additions and 47 deletions

View File

@@ -78,12 +78,10 @@ describe('menu_get', function()
command('cnoremenu Edit.Paste <C-R>"')
end)
it('no path, all modes', function()
it("path='', modes='a'", function()
local m = funcs.menu_get("","a");
-- You can use the following to print the expected table
-- and regenerate the tests:
-- local pretty = require('pl.pretty');
-- print(pretty.dump(m))
-- HINT: To print the expected table and regenerate the tests:
-- print(require('pl.pretty').dump(m))
local expected = {
{
shortcut = "T",