Fix order of definitions, remove unnecesary vars
[MAILPOET-1829]
This commit is contained in:
@ -1,8 +1,3 @@
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
const Backbone = global.Backbone;
|
||||
const jQuery = global.jQuery;
|
||||
|
||||
import App from 'newsletter_editor/App';
|
||||
import AutomatedLatestContentBlock from 'newsletter_editor/blocks/automatedLatestContent';
|
||||
import ContainerBlock from 'newsletter_editor/blocks/container';
|
||||
@ -11,6 +6,11 @@ import Communication from 'newsletter_editor/components/communication';
|
||||
/* eslint-disable-next-line max-len (ES6 -> CommonJS transform needed for inject-loader) */
|
||||
import AutomatedLatestContentInjector from 'inject-loader!babel-loader?plugins[]=@babel/plugin-transform-modules-commonjs!newsletter_editor/blocks/automatedLatestContent';
|
||||
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
const Backbone = global.Backbone;
|
||||
const jQuery = global.jQuery;
|
||||
|
||||
var EditorApplication = App;
|
||||
var CommunicationComponent = Communication;
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
|
||||
import App from 'newsletter_editor/App';
|
||||
import ButtonBlock from 'newsletter_editor/blocks/button';
|
||||
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
|
||||
var EditorApplication = App;
|
||||
var sandbox;
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
import App from 'newsletter_editor/App';
|
||||
import ContainerBlock from 'newsletter_editor/blocks/container';
|
||||
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
const Backbone = global.Backbone;
|
||||
|
||||
import App from 'newsletter_editor/App';
|
||||
import ContainerBlock from 'newsletter_editor/blocks/container';
|
||||
|
||||
var EditorApplication = App;
|
||||
|
||||
describe('Container', function () {
|
||||
|
@ -1,9 +1,9 @@
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
|
||||
import App from 'newsletter_editor/App';
|
||||
import DividerBlock from 'newsletter_editor/blocks/divider';
|
||||
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
|
||||
var EditorApplication = App;
|
||||
var sandbox;
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
|
||||
import App from 'newsletter_editor/App';
|
||||
import FooterBlock from 'newsletter_editor/blocks/footer';
|
||||
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
|
||||
var EditorApplication = App;
|
||||
|
||||
describe('Footer', function () {
|
||||
|
@ -1,9 +1,9 @@
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
|
||||
import App from 'newsletter_editor/App';
|
||||
import HeaderBlock from 'newsletter_editor/blocks/header';
|
||||
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
|
||||
var EditorApplication = App;
|
||||
|
||||
describe('Header', function () {
|
||||
|
@ -1,9 +1,9 @@
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
|
||||
import App from 'newsletter_editor/App';
|
||||
import ImageBlock from 'newsletter_editor/blocks/image';
|
||||
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
|
||||
var EditorApplication = App;
|
||||
|
||||
describe('Image', function () {
|
||||
|
@ -1,13 +1,13 @@
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
const Backbone = global.Backbone;
|
||||
const jQuery = global.jQuery;
|
||||
|
||||
import App from 'newsletter_editor/App';
|
||||
import Communication from 'newsletter_editor/components/communication';
|
||||
import PostsBlock from 'newsletter_editor/blocks/posts';
|
||||
import ContainerBlock from 'newsletter_editor/blocks/container';
|
||||
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
const Backbone = global.Backbone;
|
||||
const jQuery = global.jQuery;
|
||||
|
||||
var EditorApplication = App;
|
||||
var CommunicationComponent = Communication;
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
|
||||
import EditorApplication from 'newsletter_editor/App';
|
||||
import SocialBlock from 'newsletter_editor/blocks/social';
|
||||
import Backbone from 'backbone';
|
||||
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
|
||||
describe('Social', function () {
|
||||
describe('block model', function () {
|
||||
var model;
|
||||
|
@ -1,9 +1,9 @@
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
|
||||
import App from 'newsletter_editor/App';
|
||||
import SpacerBlock from 'newsletter_editor/blocks/spacer';
|
||||
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
|
||||
var EditorApplication = App;
|
||||
|
||||
describe('Spacer', function () {
|
||||
|
@ -1,9 +1,9 @@
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
|
||||
import EditorApplication from 'newsletter_editor/App';
|
||||
import TextBlock from 'newsletter_editor/blocks/text';
|
||||
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
|
||||
describe('Text', function () {
|
||||
describe('model', function () {
|
||||
var model;
|
||||
|
Reference in New Issue
Block a user