MCPcopy Create free account
hub / github.com/7836246/cursor2api / assert

Function assert

test/unit-proxy-agent.mjs:31–33  ·  view source on GitHub ↗
(condition, msg)

Source from the content-addressed store, hash-verified

29}
30
31function assert(condition, msg) {
32 if (!condition) throw new Error(msg || 'Assertion failed');
33}
34
35function assertEqual(a, b, msg) {
36 const as = JSON.stringify(a), bs = JSON.stringify(b);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected