Skip to content

Commit

Permalink
test that restore el is a copy
Browse files Browse the repository at this point in the history
  • Loading branch information
mister-ben committed Apr 21, 2022
1 parent 5fb9c9d commit 995cc28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/video.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,8 @@ QUnit.test('stores placeholder el and restores on dispose', function(assert) {

const player = videojs(embed.initSelector, {restoreEl: true});

assert.ok(comparisonEl.isEqualNode(player.options_.restoreEl), `${embed.type}: restoreEl option replaced by element`);
assert.ok(comparisonEl.isEqualNode(player.options_.restoreEl), `${embed.type}: restoreEl option replaced by an element`);
assert.notOk(comparisonEl.isSameNode(player.options_.restoreEl), `${embed.type}: restoreEl is a copy of the original element`);

player.dispose();

Expand Down

0 comments on commit 995cc28

Please sign in to comment.