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

Function fetchJSON

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

Source from the content-addressed store, hash-verified

5import { GitHubFile } from "../GitHubAPI"
6
7const fetchJSON = (api: any, params: any): Promise<any> => {
8 return Promise.resolve({
9 ok: true,
10 json: () =>
11 Promise.resolve({
12 api,
13 ...params,
14 }),
15 })
16}
17
18const fetchErrorJSON = (api: any, params: any): Promise<any> => {
19 return Promise.resolve({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected