Skip to content

Commit

Permalink
test: fix iOS sync load test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepolischuk committed Apr 22, 2024
1 parent c645123 commit beb021a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/runner/__tests__/runWaterfall.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit beb021a

Please sign in to comment.