mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
19 lines
403 B
JavaScript
19 lines
403 B
JavaScript
/* eslint-disable */
|
|
import jsdom from 'jsdom';
|
|
|
|
const doc = jsdom.jsdom('<!doctype html><html><body></body></html>');
|
|
const win = doc.defaultView;
|
|
global.document = doc;
|
|
global.window = win;
|
|
|
|
function propagateToGlobal(window) {
|
|
for (const key in window) {
|
|
if (!window.hasOwnProperty(key)) continue;
|
|
if (key in global) continue;
|
|
|
|
global[key] = window[key];
|
|
}
|
|
}
|
|
|
|
propagateToGlobal(win);
|