describe("test-samurai commands", function() before_each(function() vim.g.loaded_test_samurai_plugin = nil vim.cmd("runtime plugin/test-samurai.lua") end) it("registers TSamFailedOnly command", function() assert.equals(2, vim.fn.exists(":TSamFailedOnly")) end) it("registers te keymap", function() local map = vim.fn.maparg("te", "n") assert.is_true(map ~= nil and map ~= "") end) end)