Fix order of definitions, remove unnecesary vars
[MAILPOET-1829]
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
/* eslint-disable-next-line max-len (ES6 -> CommonJS transform needed for inject-loader) */
|
||||
import CommunicationInjector from 'inject-loader!babel-loader?plugins[]=@babel/plugin-transform-modules-commonjs!newsletter_editor/components/communication';
|
||||
|
||||
const expect = global.expect;
|
||||
const jQuery = global.jQuery;
|
||||
const sinon = global.sinon;
|
||||
|
||||
/* eslint-disable-next-line max-len (ES6 -> CommonJS transform needed for inject-loader) */
|
||||
import CommunicationInjector from 'inject-loader!babel-loader?plugins[]=@babel/plugin-transform-modules-commonjs!newsletter_editor/components/communication';
|
||||
|
||||
describe('getPostTypes', function () {
|
||||
it('fetches post types from the server', function () {
|
||||
var module = CommunicationInjector({
|
||||
|
@ -1,7 +1,7 @@
|
||||
const expect = global.expect;
|
||||
|
||||
import ConfigComponent from 'newsletter_editor/components/config';
|
||||
|
||||
const expect = global.expect;
|
||||
|
||||
describe('Config', function () {
|
||||
it('loads and stores configuration', function () {
|
||||
var model;
|
||||
|
@ -1,11 +1,11 @@
|
||||
import App from 'newsletter_editor/App';
|
||||
import ContentComponent from 'newsletter_editor/components/content';
|
||||
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
const Backbone = global.Backbone;
|
||||
const _ = global._;
|
||||
|
||||
import App from 'newsletter_editor/App';
|
||||
import ContentComponent from 'newsletter_editor/components/content';
|
||||
|
||||
var EditorApplication = App;
|
||||
|
||||
describe('Content', function () {
|
||||
|
@ -1,8 +1,8 @@
|
||||
import HeadingComponent from 'newsletter_editor/components/heading';
|
||||
|
||||
const expect = global.expect;
|
||||
const Backbone = global.Backbone;
|
||||
|
||||
import HeadingComponent from 'newsletter_editor/components/heading';
|
||||
|
||||
describe('Heading', function () {
|
||||
describe('view', function () {
|
||||
var view;
|
||||
|
@ -1,6 +1,3 @@
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
|
||||
import App from 'newsletter_editor/App';
|
||||
import SaveComponent from 'newsletter_editor/components/save';
|
||||
import jQuery from 'jquery';
|
||||
@ -8,6 +5,9 @@ import jQuery from 'jquery';
|
||||
/* eslint-disable-next-line max-len (ES6 -> CommonJS transform needed for inject-loader) */
|
||||
import SaveInjector from 'inject-loader!babel-loader?plugins[]=@babel/plugin-transform-modules-commonjs!newsletter_editor/components/save';
|
||||
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
|
||||
var EditorApplication = App;
|
||||
|
||||
describe('Save', function () {
|
||||
|
@ -1,8 +1,8 @@
|
||||
import SidebarComponent from 'newsletter_editor/components/sidebar';
|
||||
|
||||
const expect = global.expect;
|
||||
const Backbone = global.Backbone;
|
||||
|
||||
import SidebarComponent from 'newsletter_editor/components/sidebar';
|
||||
|
||||
describe('Sidebar', function () {
|
||||
describe('content view', function () {
|
||||
var view;
|
||||
|
@ -1,9 +1,9 @@
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
|
||||
import App from 'newsletter_editor/App';
|
||||
import StylesComponent from 'newsletter_editor/components/styles';
|
||||
|
||||
const expect = global.expect;
|
||||
const sinon = global.sinon;
|
||||
|
||||
var EditorApplication = App;
|
||||
|
||||
describe('Styles', function () {
|
||||
|
Reference in New Issue
Block a user