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

Function pushToGlobal

test/unit/test-video-iframe-integration.js:10–12  ·  view source on GitHub ↗
(global, callback)

Source from the content-addressed store, hash-verified

8
9describes.realWin('video-iframe-integration', {amp: false}, (env) => {
10 function pushToGlobal(global, callback) {
11 (global.AmpVideoIframe = global.AmpVideoIframe || []).push(callback);
12 }
13
14 function expectCalledWithAmpVideoIntegration(spy) {
15 expect(spy.withArgs(env.sandbox.match({isAmpVideoIntegration_: true}))).to

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected