示例工程 33-neovim-and-love

33-neovim-and-love/02-nvim-keymap/_test.lua

lua · 0.3 KB

-- @runtimes lua54
local h = require("harness")
local m = require("main")
h.describe("keymap", function()
	h.it("注册 normal 模式映射", function()
		local r = m.run(function() end)
		h.eq(r.registered, true)
		h.eq(r.mode, "n")
		h.eq(r.lhs, "<leader>h")
	end)
end)
h.run()