MCPcopy Index your code
hub / github.com/ampproject/amphtml / stubBuild

Function stubBuild

test/unit/test-resources.js:1392–1399  ·  view source on GitHub ↗
(resource)

Source from the content-addressed store, hash-verified

1390 }
1391
1392 function stubBuild(resource) {
1393 const origBuild = resource.build;
1394 sandbox.stub(resource, 'build').callsFake(() => {
1395 resource.buildPromise = origBuild.call(resource);
1396 return resource.buildPromise;
1397 });
1398 return resource;
1399 }
1400
1401 beforeEach(() => {
1402 sandbox = env.sandbox;

Callers 1

test-resources.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected