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

Function test

test/unit-thinking-truncation.mjs:21–32  ·  view source on GitHub ↗
(name, fn)

Source from the content-addressed store, hash-verified

19let failed = 0;
20
21function test(name, fn) {
22 try {
23 fn();
24 console.log(` ✅ ${name}`);
25 passed++;
26 } catch (error) {
27 const message = error instanceof Error ? error.message : String(error);
28 console.error(` ❌ ${name}`);
29 console.error(` ${message}`);
30 failed++;
31 }
32}
33
34function assertEqual(actual, expected, message) {
35 if (actual !== expected) {

Callers 1

Calls 2

logMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected