Skip to content

Commit

Permalink
wait until first current time change
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Jun 15, 2021
1 parent 37f2fc2 commit bd194f1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ QUnit.test('playback', function(assert) {

this.player.play();

this.player.on('ended', () => {
assert.ok(true, 'played back video');
done();
this.player.on('timeupdate', () => {
if (this.player.currentTime() > 0) {
assert.ok(true, 'played back video');
done();
}
});
});

0 comments on commit bd194f1

Please sign in to comment.