gopher.nvim/spec/unit/utils_spec.lua
2023-06-10 02:01:58 +03:00

19 lines
449 B
Lua

describe("gopher._utils", function()
it("can be requried", function()
require "gopher._utils"
end)
describe(".empty()", function()
local empty = require("gopher._utils").empty
it("with non-empty talbe", function()
local res = empty { first = "1", second = 2 }
assert.are.same(res, false)
end)
it("with empty talbe", function()
local res = empty {}
assert.are.same(res, true)
end)
end)
end)