Skip to content

Commit 02d5151

Browse files
committedNov 29, 2018
update(test): hardening for playback test
1 parent 8a7021d commit 02d5151

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎test/integration/embed-integration.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -716,8 +716,11 @@ describe('Integration - Embed', () => {
716716

717717
embed.on('playbackPosition', (pos) => {
718718
assert.ok(pos.currentMeasure >= 0, 'currentMeasure');
719-
container.parentNode.removeChild(container);
720-
done();
719+
if (container) {
720+
container.parentNode.removeChild(container);
721+
container = null;
722+
done();
723+
}
721724
});
722725

723726
embed.play();

0 commit comments

Comments
 (0)
Please sign in to comment.