MCPcopy Create free account
hub / github.com/FSGModding/FSG_Mod_Assistant / #getTestSummary

Method #getTestSummary

test/test.js:103–111  ·  view source on GitHub ↗
(color = true)

Source from the content-addressed store, hash-verified

101 }
102
103 #getTestSummary(color = true) {
104 if ( this.#didFail ) {
105 return color ? c.redBright(`🗙 FAILED: ${c.red(this.#title)}`) : `## 🗙 FAILED: ${this.#title}`
106 }
107 if ( this.#didWarn ) {
108 return color ? c.yellowBright(`⟁ WARNINGS: ${c.yellow(this.#title)}`) : `## ⟁ WARNINGS: ${this.#title}`
109 }
110 return color ? c.greenBright(`✓ PASSED: ${c.green(this.#title)}`) : `## ✓ PASSED: ${this.#title}`
111 }
112
113 end(doEnv = false, onlyError = false) {
114 /* eslint-disable no-console */

Callers 1

endMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected