switching from handling plugin downloading on our own to use vim.pack
This commit is contained in:
parent
70853bd01e
commit
9b19b61372
14 changed files with 26 additions and 802 deletions
|
|
@ -1,33 +1,6 @@
|
|||
---@diagnostic disable: undefined-global, undefined-field
|
||||
local dep_ui_format = require("dep.ui.format")
|
||||
local dep_spec_man = require("dep.spec")
|
||||
|
||||
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")
|
||||
)
|
||||
|
||||
-- malformed log line
|
||||
assert.same({},
|
||||
dep_ui_format.log_line("11:22:33] file.lua:1:(vim) some fancy message"))
|
||||
|
||||
-- test nil values
|
||||
assert.same({}, dep_ui_format.log_line(""))
|
||||
assert.same({}, dep_ui_format.log_line(nil))
|
||||
end)
|
||||
end)
|
||||
|
||||
describe("package specification", function()
|
||||
it("gets the package's name", function()
|
||||
assert.equal(dep_spec_man.get_name({ "user/package" }), "package")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue