fix formatting log lines causing errors
This commit is contained in:
@ -17,6 +17,14 @@ describe("ui log formatting", function()
|
||||
},
|
||||
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)
|
||||
|
||||
|
Reference in New Issue
Block a user