Skip to content

Commit

Permalink
fix: remove log dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-souza committed Sep 30, 2024
1 parent 80eb6dd commit 9919912
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lua/shared/tests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ local M = {}
-- setup resolution path
package.path = package.path .. ";./lua/?.lua"

local log = require("shared.logger").create_logger({ log_level = "debug" })

--- Run a test
---@param name string
---@param cb function
function M.run(name, cb)
log.debug("Running test: " .. name)
print(string.format("Running test: %s", name))
cb()
log.debug("Test passed: " .. name)
print(string.format("Test passed: %s", name))
end

---Check if a file is a test file
Expand Down

0 comments on commit 9919912

Please sign in to comment.