MCPcopy Index your code
hub / github.com/SethGammon/Citadel / assert

Function assert

scripts/test-security.js:48–52  ·  view source on GitHub ↗
(condition, message)

Source from the content-addressed store, hash-verified

46}
47
48function assert(condition, message) {
49 if (!condition) {
50 throw new Error(message || 'Assertion failed');
51 }
52}
53
54function main() {
55 console.log('\nCitadel Security Test Suite\n' + '='.repeat(40));

Calls

no outgoing calls

Tested by

no test coverage detected