MCPcopy Create free account
hub / github.com/codecombat/codecombat / get

Function get

test/app/core/api/fetch-json.spec.js:14–20  ·  view source on GitHub ↗
(attr)

Source from the content-addressed store, hash-verified

12 text() { return '{}'; },
13 headers: {
14 get(attr) {
15 if (attr === 'content-type') {
16 return 'application/json';
17 } else {
18 throw new Error("Tried to access a value on the response that we didn't stub!");
19 }
20 }
21 }
22 })));
23

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected