Skip to content

Commit

Permalink
Mute player for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed May 13, 2018
1 parent 00939a9 commit 58c6a58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/specs/ReactPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ describe('ReactPlayer', () => {
}
}
}
// Note that playing is set to true by default
render(<ReactPlayer ref={ref} playing {...props} />, div)
// Note that playing and muted are set to true by default
render(<ReactPlayer ref={ref} playing muted {...props} />, div)
}

// Test util for rendering a player and then changing props after a short time
Expand Down Expand Up @@ -214,8 +214,8 @@ describe('ReactPlayer', () => {

it('muted change does not error', done => {
renderPlayerChange(
{ url: test.url, muted: false },
{ muted: true },
{ url: test.url, muted: true },
{ muted: false },
() => setTimeout(done, 1000)
)
})
Expand Down

0 comments on commit 58c6a58

Please sign in to comment.