(argToValueMap)
| 23 | } |
| 24 | |
| 25 | export function cheerioMock(argToValueMap) { |
| 26 | return { |
| 27 | load: jest.fn(async () => { |
| 28 | return (arg) => { |
| 29 | return argToValueMap[arg] |
| 30 | } |
| 31 | }), |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | export function gotMock({ status } = {}) { |
| 36 | return jest.fn(async () => { |
nothing calls this directly
no outgoing calls
no test coverage detected