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

Function generateIncorrectAttributes

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

Source from the content-addressed store, hash-verified

452}
453
454function generateIncorrectAttributes() {
455 const name = {};
456 name.attributes = {};
457 name.attributes.wrong = {
458 location: {
459 href: 'https://foo.com/a?b=c',
460 },
461 canonicalUrl: 'https://foo.com',
462 pageViewId: '1',
463 sentinel: '1-291921',
464 startTime: 0,
465 referrer: 'baz.net',
466 };
467
468 return JSON.stringify(name);
469}

Callers 1

Calls 1

stringifyMethod · 0.80

Tested by

no test coverage detected