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

Function mockVideoJsPlayer

test/unit/test-video-iframe-integration.js:244–254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242 });
243
244 function mockVideoJsPlayer() {
245 return {
246 ready(fn) {
247 fn();
248 },
249 readyState() {
250 return 0;
251 },
252 on: env.sandbox.spy(),
253 };
254 }
255
256 describe('video.js', () => {
257 it('registers all methods', () => {

Calls

no outgoing calls

Tested by

no test coverage detected