gopher.nvim/spec/gopher_utils_spec.lua
Smirnov Olexander 7587555fa9 test: add for utils
* Add tests only for gopher._utils.empty()
2022-06-11 17:16:41 +03:00

19 lines
460 B
Lua

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