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

Function assertEqual

test/unit-thinking-truncation.mjs:34–38  ·  view source on GitHub ↗
(actual, expected, message)

Source from the content-addressed store, hash-verified

32}
33
34function assertEqual(actual, expected, message) {
35 if (actual !== expected) {
36 throw new Error(message || `Expected ${JSON.stringify(expected)}, got ${JSON.stringify(actual)}`);
37 }
38}
39
40function assertContains(actual, substring, message) {
41 if (!actual.includes(substring)) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected