MCPcopy
hub / github.com/docmirror/dev-sidecar / printHeader

Function printHeader

packages/core/src/modules/plugin/free-eye/utils.js:32–39  ·  view source on GitHub ↗
(title, isRes)

Source from the content-addressed store, hash-verified

30export const DISPLAY_WIDTH = 50
31
32export function printHeader (title, isRes) { // test start, test res
33 const sep = `\n${'='.repeat(DISPLAY_WIDTH)}\n`
34 console.log(
35 (isRes ? LogColors.MAGENTA : LogColors.CYAN)
36 + sep + title.padStart(Math.floor((DISPLAY_WIDTH + title.length) / 2)).padEnd(DISPLAY_WIDTH) + sep
37 + LogColors.RESET,
38 )
39}
40
41export function getResultIcon (success, infoStr = null) {
42 let resColor, resIcon

Callers 1

runTestsFunction · 0.85

Calls 1

logMethod · 0.80

Tested by

no test coverage detected