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

Function assert

test/unit-openai-compat.mjs:28–30  ·  view source on GitHub ↗
(condition, msg)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected