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

@ -22,7 +22,6 @@
"semi": 0, "semi": 0,
"keyword-spacing": 0, "keyword-spacing": 0,
"no-bitwise": 0, "no-bitwise": 0,
"no-multi-assign": 0,
"newline-per-chained-call": 0, "newline-per-chained-call": 0,
"no-spaced-func": 0, "no-spaced-func": 0,
"func-call-spacing": 0, "func-call-spacing": 0,

View File

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