MCPcopy Index your code
hub / github.com/scality/cloudserver / buildLog

Function buildLog

tests/unit/api/corsErrorHeaders.js:120–131  ·  view source on GitHub ↗
(sandbox)

Source from the content-addressed store, hash-verified

118}
119
120function buildLog(sandbox) {
121 return {
122 addDefaultFields: sandbox.stub(),
123 trace: sandbox.stub(),
124 debug: sandbox.stub(),
125 info: sandbox.stub(),
126 warn: sandbox.stub(),
127 error: sandbox.stub(),
128 fatal: sandbox.stub(),
129 end() { return this; },
130 };
131}
132
133describe('CORS headers on 403 auth failures (api.callApiMethod)', () => {
134 let sandbox;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected