MCPcopy Create free account
hub / github.com/ampproject/amphtml / textFunction

Function textFunction

test/unit/test-real-time-config.js:63–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61 fetchJsonStub.withArgs(params).returns(Promise.reject('FAIL'));
62 } else {
63 const textFunction = () => {
64 return !isString
65 ? Promise.resolve(JSON.stringify(response))
66 : Promise.resolve(response);
67 };
68 fetchJsonStub.withArgs(params).returns(
69 Promise.resolve({
70 status: 200,

Callers

nothing calls this directly

Calls 2

resolveMethod · 0.80
stringifyMethod · 0.80

Tested by

no test coverage detected