Skip to content

Commit

Permalink
Remove shadowHost in test in a way covered by ShadyDOM polyfill,
Browse files Browse the repository at this point in the history
  • Loading branch information
tomalec committed Sep 4, 2018
1 parent e3ce75d commit 7c67c63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/attributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
enlightedLink = shadowHost.shadowRoot.querySelector('enlighted-link');
});
afterEach(function() {
shadowHost.remove();
shadowHost.parentNode && shadowHost.parentNode.removeChild(shadowHost);
});

it('should attach `link` element with same attributes to the document\'s head', function() {
Expand Down
2 changes: 1 addition & 1 deletion test/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
shadowHost.shadowRoot.appendChild(enlightedLink);
});
afterEach(function() {
shadowHost.remove();
shadowHost.parentNode && shadowHost.parentNode.removeChild(shadowHost);
enlightedLink.removeEventListener('load', loadSpy);
enlightedLink.removeEventListener('error', errorSpy);
});
Expand Down

0 comments on commit 7c67c63

Please sign in to comment.