diff --git a/test/plugin.test.js b/test/plugin.test.js index bdcff7d8..ab4b7afa 100644 --- a/test/plugin.test.js +++ b/test/plugin.test.js @@ -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(); + } }); });