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

Method #getDisplayLine

test/test.js:93–101  ·  view source on GitHub ↗
(step, color = true)

Source from the content-addressed store, hash-verified

91 }
92
93 #getDisplayLine(step, color = true) {
94 const spacer = step.preFmt ? '' : !color ? '- ' : c.gray(' -- ')
95 const realColor = ['gray', 'cyan', 'yellow', 'red'][step.lvl]
96
97 if ( !color ) {
98 return `${spacer}${step.text}`
99 }
100 return `${spacer}${c[realColor](step.text)}`
101 }
102
103 #getTestSummary(color = true) {
104 if ( this.#didFail ) {

Callers 1

endMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected