We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6ea9db commit 06d7a2bCopy full SHA for 06d7a2b
1 file changed
extensions/amp-auto-ads/0.1/test/test-ad-strategy.js
@@ -1,3 +1,5 @@
1
+import {AmpAd} from 'extensions/amp-ad/0.1/amp-ad';
2
+
3
import {AdStrategy} from '../ad-strategy';
4
import {AdTracker} from '../ad-tracker';
5
import {PlacementState, getPlacementsFromConfigObj} from '../placement';
@@ -33,6 +35,10 @@ describes.realWin(
33
35
env.sandbox
34
36
.stub(win.__AMP_BASE_CE_CLASS.prototype, 'whenBuilt')
37
.callsFake(() => Promise.resolve());
38
39
+ // Stub actual amp-ad creation since we don't care about its behavior
40
+ // here, only that they are created.
41
+ env.sandbox.stub(AmpAd.prototype, 'buildCallback').resolves();
42
});
43
44
it('should call placeAd with correct parameters', () => {
0 commit comments