MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / same

Function same

telemetry-dashboard/scripts/render-check.mjs:46–51  ·  view source on GitHub ↗
(what, expected, actual)

Source from the content-addressed store, hash-verified

44};
45const check = (what, condition, detail) => (condition ? ok(what) : bad(what, detail));
46const same = (what, expected, actual) =>
47 check(
48 what,
49 JSON.stringify(expected) === JSON.stringify(actual),
50 `expected ${JSON.stringify(expected)}, got ${JSON.stringify(actual)}`,
51 );
52
53const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
54

Callers 1

mainFunction · 0.85

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected