Skip to content

Commit

Permalink
Fixed test issue after updating dependency, had to mock the implement…
Browse files Browse the repository at this point in the history
…ion of the play function on Audio.
  • Loading branch information
deadlybyte committed Nov 2, 2018
1 parent 75bef6d commit d329419
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/__tests__/components/CMSpeedReadPlayer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ describe('CMSpeedReadPlayer', () => {
let playMock;

beforeEach(() => {
playMock = jest.spyOn(Audio.prototype, 'play');
playMock = jest.spyOn(Audio.prototype, 'play')
.mockImplementation(() => {});
});

afterEach(() => {
Expand Down

0 comments on commit d329419

Please sign in to comment.