Fix no-param-reassign in tests

[MAILPOET-1033]
This commit is contained in:
Pavel Dohnal
2017-08-16 12:34:59 +02:00
parent bac494ac0d
commit eaf10e8a96
15 changed files with 38 additions and 24 deletions

View File

@ -5,12 +5,14 @@ define([
'amd-inject-loader!newsletter_editor/blocks/automatedLatestContent',
'newsletter_editor/components/communication'
], function(
EditorApplication,
App,
AutomatedLatestContentBlock,
ContainerBlock,
AutomatedLatestContentInjector,
CommunicationComponent
Communication
) {
var EditorApplication = App;
var CommunicationComponent = Communication;
describe('Automated Latest Content Supervisor', function() {
var model;

View File

@ -1,7 +1,8 @@
define([
'newsletter_editor/App',
'newsletter_editor/blocks/button'
], function(EditorApplication, ButtonBlock) {
], function(App, ButtonBlock) {
var EditorApplication = App;
describe("Button", function () {
describe("model", function () {

View File

@ -1,7 +1,8 @@
define([
'newsletter_editor/App',
'newsletter_editor/blocks/container'
], function(EditorApplication, ContainerBlock) {
], function(App, ContainerBlock) {
var EditorApplication = App;
describe('Container', function () {
var ModelClass = ContainerBlock.ContainerBlockModel;

View File

@ -1,7 +1,8 @@
define([
'newsletter_editor/App',
'newsletter_editor/blocks/divider'
], function(EditorApplication, DividerBlock) {
], function(App, DividerBlock) {
var EditorApplication = App;
describe("Divider", function () {
describe("model", function () {

View File

@ -1,7 +1,8 @@
define([
'newsletter_editor/App',
'newsletter_editor/blocks/footer'
], function(EditorApplication, FooterBlock) {
], function(App, FooterBlock) {
var EditorApplication = App;
describe('Footer', function () {
describe('model', function () {

View File

@ -1,7 +1,8 @@
define([
'newsletter_editor/App',
'newsletter_editor/blocks/header'
], function(EditorApplication, HeaderBlock) {
], function(App, HeaderBlock) {
var EditorApplication = App;
describe('Header', function () {
describe('model', function () {

View File

@ -1,7 +1,8 @@
define([
'newsletter_editor/App',
'newsletter_editor/blocks/image'
], function(EditorApplication, ImageBlock) {
], function(App, ImageBlock) {
var EditorApplication = App;
describe('Image', function () {
describe('model', function () {

View File

@ -3,7 +3,9 @@ define([
'newsletter_editor/components/communication',
'newsletter_editor/blocks/posts',
'newsletter_editor/blocks/container'
], function(EditorApplication, CommunicationComponent, PostsBlock, ContainerBlock) {
], function(App, Communication, PostsBlock, ContainerBlock) {
var EditorApplication = App;
var CommunicationComponent = Communication;
describe('Posts', function () {
Backbone.Radio = {

View File

@ -1,7 +1,8 @@
define([
'newsletter_editor/App',
'newsletter_editor/blocks/spacer'
], function(EditorApplication, SpacerBlock) {
], function(App, SpacerBlock) {
var EditorApplication = App;
describe('Spacer', function () {
describe('model', function () {