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

Function assert

test/unit-tool-fixer.mjs:55–57  ·  view source on GitHub ↗
(condition, msg)

Source from the content-addressed store, hash-verified

53}
54
55function assert(condition, msg) {
56 if (!condition) throw new Error(msg || 'Assertion failed');
57}
58
59function assertEqual(a, b, msg) {
60 const as = JSON.stringify(a), bs = JSON.stringify(b);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected