MCPcopy Create free account
hub / github.com/github/docs / cheerioMock

Function cheerioMock

tests/helpers/action-mocks.js:25–33  ·  view source on GitHub ↗
(argToValueMap)

Source from the content-addressed store, hash-verified

23}
24
25export function cheerioMock(argToValueMap) {
26 return {
27 load: jest.fn(async () => {
28 return (arg) => {
29 return argToValueMap[arg]
30 }
31 }),
32 }
33}
34
35export function gotMock({ status } = {}) {
36 return jest.fn(async () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected