MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / check

Function check

scripts/smoke-identities.mjs:19–25  ·  view source on GitHub ↗
(label, condition)

Source from the content-addressed store, hash-verified

17);
18
19function check(label, condition) {
20 if (!condition) {
21 console.error(`✘ ${label}`);
22 process.exit(1);
23 }
24 console.log(`✔ ${label}`);
25}
26
27check('identities bundle exports loadIdentities', typeof loadIdentities === 'function');
28check('identities bundle exports FUNGRIM_CORE', Array.isArray(FUNGRIM_CORE?.rules));

Callers 1

Calls 2

errorMethod · 0.65
logMethod · 0.65

Tested by

no test coverage detected