Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinke666 committed Sep 11, 2019
1 parent f08d976 commit 5a3357d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions __tests__/setup.js
Expand Up @@ -30,6 +30,9 @@ if (typeof window !== 'undefined') {
dispatchEvent: jest.fn()
}
})
global.window.HTMLMediaElement.prototype.load = () => {}
global.window.HTMLMediaElement.prototype.play = () => {}
global.window.HTMLMediaElement.prototype.pause = () => {}
}

Enzyme.configure({ adapter: new Adapter() })

0 comments on commit 5a3357d

Please sign in to comment.