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) {
|
||||
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");
|
||||
|
|
Loading…
Reference in New Issue