MCPcopy
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / get

Function get

run/hello-broken/test/system.test.js:21–29  ·  view source on GitHub ↗
(route, base_url, id_token, retry = 3)

Source from the content-addressed store, hash-verified

19const auth = new GoogleAuth();
20
21const get = (route, base_url, id_token, retry = 3) => {
22 return request(new URL(route, base_url.trim()), {
23 headers: {
24 Authorization: `${id_token.trim()}`,
25 },
26 throwHttpErrors: false,
27 retry,
28 });
29};
30
31describe('End-to-End Tests', () => {
32 const {GOOGLE_CLOUD_PROJECT} = process.env;

Callers 1

system.test.jsFile · 0.70

Calls 1

requestFunction · 0.50

Tested by

no test coverage detected