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

Function stubConsole

functions/slack/test/unit.test.js:113–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111};
112
113const stubConsole = function () {
114 sinon.stub(console, 'error');
115 sinon.stub(console, 'log');
116};
117
118//Restore console
119const restoreConsole = function () {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected