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

Function resetServiceForTesting

src/service-helpers.js:618–622  ·  view source on GitHub ↗
(holder, id)

Source from the content-addressed store, hash-verified

616 * @param {string} id of the service.
617 */
618export function resetServiceForTesting(holder, id) {
619 if (holder.__AMP_SERVICES) {
620 holder.__AMP_SERVICES[id] = null;
621 }
622}
623
624/**
625 * @param {!Object} holder Object holding the service instance.

Calls

no outgoing calls

Tested by

no test coverage detected