Tests: padded-blocks

This commit is contained in:
Amine Ben hammou
2017-10-25 14:54:28 +00:00
parent 4dc9004303
commit f5ced785e0
11 changed files with 1 additions and 16 deletions

View File

@ -11,8 +11,6 @@
// Exceptions
"func-names": 0,
// Temporary
"no-underscore-dangle": 0,
// To add
"padded-blocks": 0
"no-underscore-dangle": 0
}
}

View File

@ -12,7 +12,6 @@ global.expect = chai.expect;
global.sinon = sinon;
if (!global.document || !global.window) {
global.document = jsdom('<html><head><script></script></head><body></body></html>', {}, {
FetchExternalResources: ['script'],
ProcessExternalResources: ['script'],
@ -22,7 +21,6 @@ if (!global.document || !global.window) {
global.window = document.parentWindow;
global.navigator = global.window.navigator;
}
const testHelpers = require('./loadHelpers.js');
global.testHelpers = testHelpers;

View File

@ -121,7 +121,6 @@ define([
});
describe('once rendered', function () {
describe('on root level', function () {
var model = new (ContainerBlock.ContainerBlockModel)();
var view;
@ -186,7 +185,6 @@ define([
expect(view.$('.mailpoet_duplicate_block')).to.have.length(1);
});
});
});
});

View File

@ -113,7 +113,6 @@ define([
expect(innerModel.get('styles.link.fontColor')).to.equal('#345678');
expect(innerModel.get('styles.link.textDecoration')).to.equal('underline');
});
});
describe('block view', function () {

View File

@ -6,7 +6,6 @@ define([
'newsletter_editor/blocks/social',
'backbone'
], function (EditorApplication, SocialBlock, Backbone) {
describe('Social', function () {
describe('block model', function () {
var model;

View File

@ -4,7 +4,6 @@ define([
'newsletter_editor/App',
'newsletter_editor/blocks/text'
], function (EditorApplication, TextBlock) {
describe('Text', function () {
describe('model', function () {
var model;

View File

@ -7,7 +7,6 @@ define([
'newsletter_editor/components/communication',
'amd-inject-loader!newsletter_editor/components/communication'
], function (EditorApplication, Communication, CommunicationInjector) {
describe('getPostTypes', function () {
it('fetches post types from the server', function () {
var module = CommunicationInjector({

View File

@ -4,7 +4,6 @@ define([
'newsletter_editor/App',
'newsletter_editor/components/config'
], function (EditorApplication, ConfigComponent) {
describe('Config', function () {
it('loads and stores configuration', function () {
var model;

View File

@ -5,7 +5,6 @@ define([
'newsletter_editor/App',
'newsletter_editor/components/heading'
], function (EditorApplication, HeadingComponent) {
describe('Heading', function () {
describe('view', function () {
var view;

View File

@ -97,7 +97,6 @@ define([
mock.verify();
});
});
describe('view', function () {
@ -194,7 +193,6 @@ define([
expect(spy).to.have.callCount(1);
expect(spy).to.have.been.calledWith('beforeEditorSave');
});
});
});
});

View File

@ -5,7 +5,6 @@ define([
'newsletter_editor/App',
'newsletter_editor/components/sidebar'
], function (EditorApplication, SidebarComponent) {
describe('Sidebar', function () {
describe('content view', function () {
var view;