MCPcopy Index your code
hub / github.com/ampproject/amphtml / simpleSuccess

Function simpleSuccess

test/unit/test-alp-handler.js:72–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70 });
71
72 function simpleSuccess() {
73 handleClick(event);
74 expect(open).to.be.calledOnce;
75 expect(open.lastCall.args).to.jsonEqual([
76 'https://cdn.ampproject.org/c/www.example.com/amp.html#click=' +
77 'https%3A%2F%2Ftest.com%3Famp%3D1%26adurl%3Dhttps%253A%252F%252F' +
78 'cdn.ampproject.org%252Fc%252Fwww.example.com%252Famp.html',
79 '_top',
80 undefined,
81 ]);
82 expect(event.preventDefault).to.be.calledOnce;
83 }
84
85 function a2aSuccess(ampParent) {
86 handleClick(event);

Callers 1

Calls 2

handleClickFunction · 0.90
expectFunction · 0.85

Tested by

no test coverage detected