MCPcopy
hub / github.com/darkreader/darkreader / logAssert

Function logAssert

src/background/utils/log.ts:29–34  ·  view source on GitHub ↗
(...args: any[])

Source from the content-addressed store, hash-verified

27}
28
29function logAssert(...args: any[]): void {
30 if ((__TEST__ || __DEBUG__)) {
31 console.assert(...args);
32 sendLog('assert', ...args);
33 }
34}
35
36export function ASSERT(description: string, condition: (() => boolean) | any): void {
37 if ((__TEST__ || __DEBUG__) && ((typeof condition === 'function' && !condition()) || !condition)) {

Callers 1

ASSERTFunction · 0.70

Calls 1

sendLogFunction · 0.90

Tested by

no test coverage detected