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

Function regularExtension

test/unit/test-runtime.js:66–75  ·  view source on GitHub ↗
(fn, opt_rtvVersion)

Source from the content-addressed store, hash-verified

64 });
65
66 function regularExtension(fn, opt_rtvVersion) {
67 return {
68 n: 'amp-test-element' + extensionElementIndex++,
69 ev: '0.1',
70 l: true,
71 f: fn,
72 // Default version of uncompiled sources.
73 v: opt_rtvVersion || '$internalRuntimeVersion$',
74 };
75 }
76
77 afterEach(() => {
78 ampdocServiceMock.verify();

Callers 2

test-runtime.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected