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

Function factory

test/unit/test-runtime.js:748–751  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

746 it('should register doc-service factory and install', function* () {
747 let count = 0;
748 function factory() {
749 count++;
750 return {str: 'A'};
751 }
752 const ampdoc = new AmpDocSingle(win);
753 ampdoc.declareExtension('amp-ext', '0.1');
754 ampdocServiceMock.expects('getAmpDoc').returns(ampdoc).atLeast(1);

Callers 6

templateFuncFunction · 0.50
memoFunction · 0.50
registerExtensionMethod · 0.50
addDocFactoryMethod · 0.50
installExtensionInDocMethod · 0.50
templateFuncFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected