MCPcopy Create free account
hub / github.com/wonderwhy-er/DesktopCommanderMCP / assert

Function assert

test/test-search-code.js:191–195  ·  view source on GitHub ↗

* Assert function for test validation

(condition, message)

Source from the content-addressed store, hash-verified

189 * Assert function for test validation
190 */
191function assert(condition, message) {
192 if (!condition) {
193 throw new Error(`Assertion failed: ${message}`);
194 }
195}
196
197/**
198 * Test basic search functionality

Callers 15

testEnhancedREPLFunction · 0.70
testNewOutputBehaviorFunction · 0.70
testAbsoluteOffsetFunction · 0.70
testTailBehaviorFunction · 0.70
testLengthLimitFunction · 0.70
testRuntimeInfoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected