MCPcopy
hub / github.com/angular/angular / MockConsole

Class MockConsole

packages/core/test/application_ref_spec.ts:1055–1067  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1053});
1054
1055class MockConsole {
1056 res: any[][] = [];
1057 log(...args: any[]): void {
1058 // Logging from ErrorHandler should run outside of the Angular Zone.
1059 NgZone.assertNotInAngularZone();
1060 this.res.push(args);
1061 }
1062 error(...args: any[]): void {
1063 // Logging from ErrorHandler should run outside of the Angular Zone.
1064 NgZone.assertNotInAngularZone();
1065 this.res.push(args);
1066 }
1067}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…