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

Function disposableFactory

test/unit/test-ampdoc.js:523–527  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

521
522 it('should set up and dipose services', () => {
523 const disposableFactory = function () {
524 return {
525 dispose: env.sandbox.spy(),
526 };
527 };
528
529 // Register a disposable service.
530 registerServiceBuilderForDoc(embedChild, 'a', disposableFactory);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected