refactor(utils): remove unused code
This commit is contained in:
parent
4d2f9a23e0
commit
1bd95bf18b
2 changed files with 0 additions and 21 deletions
|
|
@ -1,16 +1,5 @@
|
|||
local utils = {}
|
||||
|
||||
local TITLE = "gopher.nvim"
|
||||
|
||||
---@param t table
|
||||
---@return boolean
|
||||
function utils.is_tbl_empty(t)
|
||||
if t == nil then
|
||||
return true
|
||||
end
|
||||
return next(t) == nil
|
||||
end
|
||||
|
||||
---@param msg string
|
||||
---@param lvl number
|
||||
function utils.deferred_notify(msg, lvl)
|
||||
|
|
|
|||
|
|
@ -1,16 +1,6 @@
|
|||
describe("gopher._utils", function()
|
||||
local u = require "gopher._utils"
|
||||
|
||||
describe(".is_tbl_empty()", function()
|
||||
it("it is empty", function()
|
||||
assert.are.same(true, u.is_tbl_empty {})
|
||||
end)
|
||||
|
||||
it("it is not empty", function()
|
||||
assert.are.same(false, u.is_tbl_empty { first = "1", second = 2 })
|
||||
end)
|
||||
end)
|
||||
|
||||
describe(".sreq()", function()
|
||||
it("can require existing module", function()
|
||||
assert.are.same(require "gopher", u.sreq "gopher")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue