chore: Use `delete window.browser` in `setupTestDOMWindow` (#128)

This patch remove a workaround introduced in #2, because it has been fixed upstream and the workaround is not needed anymore (when using a nodejs version >= 8).
This commit is contained in:
ExE Boss 2018-06-19 23:36:50 +02:00 committed by Luca Greco
parent 3a6d76a88f
commit 80f4caf453
1 changed files with 1 additions and 2 deletions

View File

@ -45,8 +45,7 @@ function setupTestDOMWindow(chromeObject, browserObject = undefined) {
if (browserObject) {
window.browser = browserObject;
} else {
// TODO: change into `delete window.browser` once tmpvar/jsdom#1622 has been fixed.
window.browser = undefined;
delete window.browser;
}
const scriptEl = window.document.createElement("script");