MCPcopy Create free account
hub / github.com/github/gh-aw / assertNotContains

Function assertNotContains

scripts/generate-schema-docs.test.js:40–48  ·  view source on GitHub ↗

* Test helper to check if output does NOT contain unexpected content

(content, unexpected, testName)

Source from the content-addressed store, hash-verified

38 * Test helper to check if output does NOT contain unexpected content
39 */
40function assertNotContains(content, unexpected, testName) {
41 if (content.includes(unexpected)) {
42 console.error(`❌ FAIL: ${testName}`);
43 console.error(` Expected NOT to find: "${unexpected}"`);
44 return false;
45 }
46 console.log(`✓ PASS: ${testName}`);
47 return true;
48}
49
50// Run the schema doc generator
51console.log("Running schema documentation generator...");

Callers 1

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected