We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89e2fb3 commit 0da2fc0Copy full SHA for 0da2fc0
1 file changed
setupTests.js
@@ -19,15 +19,15 @@ const copyProps = (src, target) => {
19
.filter(prop => typeof target[prop] === 'undefined')
20
.reduce((result, prop) => ({
21
...result,
22
- [prop]: Object.getOwnPropertyDescriptor(src, prop),
+ [prop]: Object.getOwnPropertyDescriptor(src, prop)
23
}), {});
24
Object.defineProperties(target, props);
25
};
26
27
global.window = window;
28
global.document = window.document;
29
global.navigator = {
30
- userAgent: 'node.js',
+ userAgent: 'node.js'
31
32
33
copyProps(window, global);
0 commit comments