MCPcopy
hub / github.com/7836246/cursor2api / assertContains

Function assertContains

test/unit-thinking-truncation.mjs:40–44  ·  view source on GitHub ↗
(actual, substring, message)

Source from the content-addressed store, hash-verified

38}
39
40function assertContains(actual, substring, message) {
41 if (!actual.includes(substring)) {
42 throw new Error(message || `Expected string to contain ${JSON.stringify(substring)}, got ${JSON.stringify(actual)}`);
43 }
44}
45
46// ==================== splitLeadingThinkingBlocks 测试 ====================
47

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected