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

Method setup

testing/describes.js:414–420  ·  view source on GitHub ↗

@override

(env)

Source from the content-addressed store, hash-verified

412
413 /** @override */
414 setup(env) {
415 env.sandbox = sinon.createSandbox();
416 env.sandbox.defineProperty = this.defineProperty_.bind(this);
417 env.sandbox.deleteProperty = (obj, propertyKey) => {
418 this.defineProperty_(obj, propertyKey, undefined);
419 };
420 }
421
422 /** @override */
423 teardown(env) {

Callers

nothing calls this directly

Calls 1

defineProperty_Method · 0.95

Tested by

no test coverage detected