✅🧱 add tests & ci changes
This commit is contained in:
19
devices-api/spec/log_spec.lua
Normal file
19
devices-api/spec/log_spec.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
describe("log", function()
|
||||
local log
|
||||
|
||||
before_each(function()
|
||||
log = require("log")
|
||||
end)
|
||||
|
||||
it("exposes info, warn, error functions", function()
|
||||
assert.is_function(log.info)
|
||||
assert.is_function(log.warn)
|
||||
assert.is_function(log.error)
|
||||
end)
|
||||
|
||||
it("calls info without error", function()
|
||||
assert.has_no.errors(function()
|
||||
log.info("test message", { component = "test" })
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
Reference in New Issue
Block a user