Files
dep/tests/dep_spec.lua
Squibid 585f04c745 add testing...
this is very limited right now, but I will expand as I see fit
2025-07-02 03:53:31 -04:00

21 lines
568 B
Lua

---@diagnostic disable: undefined-global, undefined-field
local dep_ui_format = require("dep.ui.format")
describe("ui log formatting", function()
it("returns the proper chunks to print a formatted line", function()
assert.same(
{
{ "[", "" },
{ "11:22:33", "Boolean" },
{ "] ", "" },
{ "file.lua", "String" },
{ ":", "" },
{ "1", "Number" },
{ ": ", "" },
{ "some fancy message", "" }
},
dep_ui_format.log_line("[11:22:33] file.lua:1:(vim) some fancy message")
)
end)
end)