MCPcopy Create free account
hub / github.com/danger/danger-js / fetchErrorJSON

Function fetchErrorJSON

source/platforms/github/_tests/_github_api.test.ts:18–27  ·  view source on GitHub ↗
(api: any, params: any)

Source from the content-addressed store, hash-verified

16}
17
18const fetchErrorJSON = (api: any, params: any): Promise<any> => {
19 return Promise.resolve({
20 ok: false,
21 json: () =>
22 Promise.resolve({
23 api,
24 ...params,
25 }),
26 })
27}
28
29const fetch = (api: any, params: any): Promise<any> => {
30 return Promise.resolve({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected