MCPcopy
hub / github.com/strongloop/loopback / mockRequest

Function mockRequest

test/access-token.test.js:606–620  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

604 });
605
606 function mockRequest(opts) {
607 return extend(
608 {
609 method: 'GET',
610 url: '/a-test-path',
611 headers: {},
612 _params: {},
613
614 // express helpers
615 param: function(name) { return this._params[name]; },
616 header: function(name) { return this.headers[name]; },
617 },
618 opts,
619 );
620 }
621 });
622});
623

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…