MCPcopy
hub / github.com/ampproject/amphtml / generateAMPConfigObject

Function generateAMPConfigObject

test/unit/test-amp-context.js:396–408  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

394});
395
396function generateAMPConfigObject() {
397 return {
398 location: {
399 href: 'https://foo.com/a?b=c',
400 },
401 canonicalUrl: 'https://bar.com',
402 pageViewId: '1',
403 pageViewId64: 'abcdef',
404 sentinel: '1-291921',
405 startTime: 0,
406 referrer: 'baz.net',
407 };
408}
409
410function generateSerializedAttributes(opt_sentinel) {
411 return JSON.stringify(generateAttributes(opt_sentinel));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected