MCPcopy Create free account
hub / github.com/angular/angular / MockConsole

Class MockConsole

packages/core/test/application_ref_spec.ts:973–985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

971});
972
973class MockConsole {
974 res: any[][] = [];
975 log(...args: any[]): void {
976 // Logging from ErrorHandler should run outside of the Angular Zone.
977 NgZone.assertNotInAngularZone();
978 this.res.push(args);
979 }
980 error(...args: any[]): void {
981 // Logging from ErrorHandler should run outside of the Angular Zone.
982 NgZone.assertNotInAngularZone();
983 this.res.push(args);
984 }
985}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected