test = {
const withMessage = (title, color) =>
html`<span style="font: var(--mono_fonts); color: ${color};">${title}</span>`
const test = (...args) => {
const [action, title] = args.reverse()
action()
return withMessage(`Success: ${title || "test passed"}`, "green")
}
test.skip = (...args) => {
const [action, title] = args.reverse()
return withMessage(`Skipped: ${title || "test skipped"}`, "darkorange")
}
return test
}