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

Function logAssert

src/inject/utils/log.ts:40–45  ·  view source on GitHub ↗
(...args: any[])

Source from the content-addressed store, hash-verified

38}
39
40function logAssert(...args: any[]): void {
41 if ((__TEST__ || __DEBUG__)) {
42 console.assert(false, 'DARK READER', ...args);
43 sendLogToBG('assert', ...args);
44 }
45}
46
47export function ASSERT(description: string, condition: (() => boolean) | any): void {
48 if ((__TEST__ || __DEBUG__) && ((typeof condition === 'function' && !condition()) || !condition)) {

Callers 1

ASSERTFunction · 0.70

Calls 1

sendLogToBGFunction · 0.85

Tested by

no test coverage detected