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

Function assert

test/unit-log-persist-compact.mjs:21–23  ·  view source on GitHub ↗
(condition, msg)

Source from the content-addressed store, hash-verified

19let failed = 0;
20
21function assert(condition, msg) {
22 if (!condition) throw new Error(msg || 'Assertion failed');
23}
24
25function assertEqual(a, b, msg) {
26 const as = JSON.stringify(a);

Callers 2

latestPersistedRecordFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected