MCPcopy
hub / github.com/scality/cloudserver / wrapperFor

Function wrapperFor

tests/unit/server.js:59–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 // `sinon` matcher to match when the callback argument actually invokes the expected
58 // function
59 const wrapperFor = expected => sinon.match(actual => {
60 const req = uuid.v4();
61 const res = uuid.v4();
62 actual(req, res);
63 return expected.calledWith(req, res);
64 });
65
66 it('should start API server with default port if no listenOn is provided', async () => {
67 config.port = 8000;

Callers 1

server.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected