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

Method teardown

testing/describes.js:672–680  ·  view source on GitHub ↗

@override

(env)

Source from the content-addressed store, hash-verified

670
671 /** @override */
672 teardown(env) {
673 // TODO(dvoytenko): test that window is returned in a good condition.
674 if (env.iframe.parentNode) {
675 env.iframe.parentNode.removeChild(env.iframe);
676 }
677 if (this.spec.mockFetch !== false) {
678 fetchMock./*OK*/ restore();
679 }
680 }
681}
682
683/** @implements {FixtureInterface} */

Callers

nothing calls this directly

Calls 1

restoreMethod · 0.80

Tested by

no test coverage detected