MCPcopy
hub / github.com/codeceptjs/CodeceptJS / handler

Function handler

test/unit/pause_test.js:30–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 it('handler receives registered variables and returns a Promise', async () => {
29 let received = null
30 const handler = arg => {
31 received = arg
32 return Promise.resolve()
33 }
34 setPauseHandler(handler)
35 // Drive the handler directly to verify the contract
36 const p = handler({ registeredVariables: { foo: 1 } })

Callers 3

mockRouteMethod · 0.85
pause_test.jsFile · 0.85
commandHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected