From beb021a6ad144bc6dcf85b016a9bb4fc0e9a0113 Mon Sep 17 00:00:00 2001 From: Andrey Polischuk Date: Mon, 22 Apr 2024 16:55:21 +0300 Subject: [PATCH] test: fix iOS sync load test --- src/runner/__tests__/runWaterfall.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/runner/__tests__/runWaterfall.spec.ts b/src/runner/__tests__/runWaterfall.spec.ts index 0baf6e5..2a24174 100644 --- a/src/runner/__tests__/runWaterfall.spec.ts +++ b/src/runner/__tests__/runWaterfall.spec.ts @@ -82,6 +82,9 @@ describe('runWaterfall', () => { Object.defineProperty(videoElement, 'load', { value: jest.fn() }) + Object.defineProperty(videoElement, 'canPlayType', { + value: jest.fn(() => true) + }) ;(isIos as jest.Mock).mockReturnValue(true) runWaterfall(adTag, placeholder, {