MCPcopy Create free account
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}
48
49function assert(condition, message) {
50 if (!condition) {
51 throw new Error(message || 'Assertion failed');
52 }
53}
54
55function main() {

Calls

no outgoing calls

Tested by

no test coverage detected