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:
parent
3a6d76a88f
commit
80f4caf453
|
@ -45,8 +45,7 @@ function setupTestDOMWindow(chromeObject, browserObject = undefined) {
|
||||||
if (browserObject) {
|
if (browserObject) {
|
||||||
window.browser = browserObject;
|
window.browser = browserObject;
|
||||||
} else {
|
} else {
|
||||||
// TODO: change into `delete window.browser` once tmpvar/jsdom#1622 has been fixed.
|
delete window.browser;
|
||||||
window.browser = undefined;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const scriptEl = window.document.createElement("script");
|
const scriptEl = window.document.createElement("script");
|
||||||
|
|
Loading…
Reference in New Issue