MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / printCheck

Function printCheck

lib/command/check.js:194–207  ·  view source on GitHub ↗
(name, value, comment = '')

Source from the content-addressed store, hash-verified

192}
193
194function printCheck(name, value, comment = '') {
195 let status = ''
196 if (value == true) {
197 status += chalk.bold.green(figures.tick)
198 } else {
199 status += chalk.bold.red(figures.cross)
200 }
201
202 if (value instanceof Error) {
203 comment = `${comment} ${chalk.red(value.message)}`.trim()
204 }
205
206 output.print(status, name.toUpperCase(), chalk.dim(comment))
207}

Callers 1

check.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected