mirror of
https://github.com/apache/superset.git
synced 2026-04-22 01:24:43 +00:00
* Change in files * Renamin files and folders * cleaning up a single piece of lint * Removing boat picture from docs * add superset word mark * Update rename note in docs * Fixing images * Pinning datatables * Fixing issues with mapbox-gl * Forgot to rename one file * Linting * v0.13.0 * adding pyyaml to dev-reqs
23 lines
550 B
JavaScript
23 lines
550 B
JavaScript
/* eslint no-undef: 0, no-native-reassign: 0 */
|
|
|
|
require('babel-register')();
|
|
|
|
const jsdom = require('jsdom').jsdom;
|
|
|
|
const exposedProperties = ['window', 'navigator', 'document'];
|
|
|
|
global.document = jsdom('');
|
|
global.window = document.defaultView;
|
|
Object.keys(document.defaultView).forEach((property) => {
|
|
if (typeof global[property] === 'undefined') {
|
|
exposedProperties.push(property);
|
|
global[property] = document.defaultView[property];
|
|
}
|
|
});
|
|
|
|
global.navigator = {
|
|
userAgent: 'node.js',
|
|
platform: 'linux',
|
|
appName: 'Netscape',
|
|
};
|