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

Function getMocks

functions/env_vars/test/index.test.js:21–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19const functions = require('../');
20
21const getMocks = () => {
22 const req = {};
23 const res = {
24 send: sinon.stub().returnsThis(),
25 };
26
27 return {
28 req: req,
29 res: res,
30 };
31};
32
33describe('functions_env_vars', () => {
34 it('should read env vars', () => {

Callers 1

index.test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected