Fix no-multi-assign in tests

[MAILPOET-1033]
This commit is contained in:
Pavel Dohnal
2017-08-16 12:25:15 +02:00
parent acd2b9f51e
commit bac494ac0d
2 changed files with 5 additions and 4 deletions

View File

@ -28,7 +28,9 @@ if (!global.document || !global.window) {
}
global.testHelpers = require('./loadHelpers.js');
global.$ = global.jQuery = global.window.jQuery = require('jquery');
global.$ = require('jquery');
global.jQuery = require('jquery');
global.window.jQuery = require('jquery');
testHelpers.loadScript('tests/javascript/testBundles/vendor.js', global.window);
global.Handlebars = global.window.Handlebars;
@ -46,8 +48,8 @@ global.interact = function () {
styleCursor: global.interact
};
};
jQuery.fn.spectrum = global.spectrum = function() { return this; };
global.spectrum = function() { return this; };
jQuery.fn.spectrum = global.spectrum;
jQuery.fn.stick_in_parent = function() { return this; };
// Add global stubs for convenience