Skip to content

Commit

Permalink
fix(tests): add messaging on utils test
Browse files Browse the repository at this point in the history
  • Loading branch information
atticusofsparta committed Jan 21, 2025
1 parent 2140f0e commit 5096f6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/utils_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ describe("utils.validateUndername", function()

for _, name in ipairs(validNames) do
local success, error = pcall(utils.validateUndername, name)
assert.is_true(success)
assert.is_nil(error)
assert.is_true(success, name .. " was invalid")
assert.is_nil(error, name .. " got an error")
end
end)

Expand Down Expand Up @@ -137,8 +137,8 @@ describe("utils.validateUndername", function()

for _, name in ipairs(invalidNames) do
local invalid, error = pcall(utils.validateUndername, name)
assert.is_true(invalid)
assert.is_not_nil(error)
assert.is_true(invalid, name .. " was invalid")
assert.is_not_nil(error, "error for " .. name .. " was nil")
end
end)
end)

0 comments on commit 5096f6a

Please sign in to comment.