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

Function assertNotContains

scripts/changeset.test.js:43–51  ·  view source on GitHub ↗

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

(content, unexpected, testName)

Source from the content-addressed store, hash-verified

41 * Test helper to check if content does NOT contain unexpected string
42 */
43function assertNotContains(content, unexpected, testName) {
44 if (content.includes(unexpected)) {
45 console.error(`❌ FAIL: ${testName}`);
46 console.error(` Expected NOT to find: "${unexpected}"`);
47 return false;
48 }
49 console.log(`✓ PASS: ${testName}`);
50 return true;
51}
52
53/**
54 * Create a test changeset file

Callers 1

runTestsFunction · 0.70

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected