MCPcopy Index your code
hub / github.com/MatterAIOrg/OrbCode / assertContains

Function assertContains

test-ui.mjs:69–73  ·  view source on GitHub ↗
(label, needle)

Source from the content-addressed store, hash-verified

67const clean = (s) => s.replace(/\x1b\[[0-9;?]*[a-zA-Z]/g, "")
68
69function assertContains(label, needle) {
70 const ok = clean(stdout.output).includes(needle)
71 console.log(`${ok ? "PASS" : "FAIL"}: ${label}`)
72 if (!ok) process.exitCode = 1
73}
74
75await sleep(300)
76const pkgVersion = JSON.parse(fs.readFileSync(new URL("./package.json", import.meta.url), "utf8")).version

Callers 1

test-ui.mjsFile · 0.85

Calls 1

cleanFunction · 0.85

Tested by

no test coverage detected