MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / stubConsole

Function stubConsole

appengine/endpoints/test/app.test.js:41–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39};
40
41const stubConsole = function () {
42 sinon.stub(console, 'error');
43};
44
45const restoreConsole = function () {
46 console.error.restore();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected