Skip to content

Commit

Permalink
eslint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Jan 17, 2018
1 parent 8e1da7f commit 12cac7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setupTests.js
Expand Up @@ -19,15 +19,15 @@ const copyProps = (src, target) => {
.filter(prop => typeof target[prop] === 'undefined')
.reduce((result, prop) => ({
...result,
[prop]: Object.getOwnPropertyDescriptor(src, prop),
[prop]: Object.getOwnPropertyDescriptor(src, prop)
}), {});
Object.defineProperties(target, props);
};

global.window = window;
global.document = window.document;
global.navigator = {
userAgent: 'node.js',
userAgent: 'node.js'
};

copyProps(window, global);

0 comments on commit 12cac7f

Please sign in to comment.