Skip to content

Commit 745b953

Browse files
committedMar 31, 2017
don't use Object.assign even in tests, just in case
1 parent 86e0d5a commit 745b953

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎test/jasmine/assets/mouse_event.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
var Lib = require('@src/lib');
2+
13
module.exports = function(type, x, y, opts) {
24
var fullOpts = {
35
bubbles: true,
@@ -14,7 +16,7 @@ module.exports = function(type, x, y, opts) {
1416
ev;
1517

1618
if(type === 'scroll') {
17-
ev = new window.WheelEvent('wheel', Object.assign({}, fullOpts, opts));
19+
ev = new window.WheelEvent('wheel', Lib.extendFlat({}, fullOpts, opts));
1820
} else {
1921
ev = new window.MouseEvent(type, fullOpts);
2022
}

0 commit comments

Comments
 (0)
Please sign in to comment.