MCPcopy Create free account
hub / github.com/ampproject/amphtml / getElementClassForTesting

Function getElementClassForTesting

src/service/custom-element-registry.js:235–238  ·  view source on GitHub ↗
(win, elementName)

Source from the content-addressed store, hash-verified

233 * @visibleForTesting
234 */
235export function getElementClassForTesting(win, elementName) {
236 const knownElements = win.__AMP_EXTENDED_ELEMENTS;
237 return (knownElements && knownElements[elementName]) || null;
238}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected