chore(lune): remove unneeded status from frktest reporter

This commit is contained in:
Erica Marigold 2024-12-04 06:05:54 +00:00
parent ca5f2d53c8
commit b7ccc05702
Signed by: DevComp
GPG key ID: 429EF1C337871656

View file

@ -10,10 +10,8 @@ local STYLE = table.freeze({
return `{stdio.style("bold")}{stdio.color("purple")}SUITE{stdio.style("reset")} {name}`
end,
report = function(name: string, state: "run" | "success" | "error" | "skip", elapsed: number)
local state_color: stdio.Color = if state == "run"
then "white"
elseif state == "success" then "green"
report = function(name: string, state: "success" | "error" | "skip", elapsed: number)
local state_color: stdio.Color = if state == "success" then "green"
elseif state == "error" then "red"
elseif state == "skip" then "yellow"
else error("Invalid test state")