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

Function stubConsole

functions/ocr/app/test/index.test.js:37–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35};
36
37const stubConsole = function () {
38 sinon.stub(console, 'error');
39 sinon.stub(console, 'log');
40};
41
42const restoreConsole = function () {
43 console.log.restore();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected