Tests: padded-blocks
This commit is contained in:
@ -11,8 +11,6 @@
|
||||
// Exceptions
|
||||
"func-names": 0,
|
||||
// Temporary
|
||||
"no-underscore-dangle": 0,
|
||||
// To add
|
||||
"padded-blocks": 0
|
||||
"no-underscore-dangle": 0
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -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 () {
|
||||
|
@ -6,7 +6,6 @@ define([
|
||||
'newsletter_editor/blocks/social',
|
||||
'backbone'
|
||||
], function (EditorApplication, SocialBlock, Backbone) {
|
||||
|
||||
describe('Social', function () {
|
||||
describe('block model', function () {
|
||||
var model;
|
||||
|
@ -4,7 +4,6 @@ define([
|
||||
'newsletter_editor/App',
|
||||
'newsletter_editor/blocks/text'
|
||||
], function (EditorApplication, TextBlock) {
|
||||
|
||||
describe('Text', function () {
|
||||
describe('model', function () {
|
||||
var model;
|
||||
|
@ -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({
|
||||
|
@ -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;
|
||||
|
@ -5,7 +5,6 @@ define([
|
||||
'newsletter_editor/App',
|
||||
'newsletter_editor/components/heading'
|
||||
], function (EditorApplication, HeadingComponent) {
|
||||
|
||||
describe('Heading', function () {
|
||||
describe('view', function () {
|
||||
var view;
|
||||
|
@ -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');
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -5,7 +5,6 @@ define([
|
||||
'newsletter_editor/App',
|
||||
'newsletter_editor/components/sidebar'
|
||||
], function (EditorApplication, SidebarComponent) {
|
||||
|
||||
describe('Sidebar', function () {
|
||||
describe('content view', function () {
|
||||
var view;
|
||||
|
Reference in New Issue
Block a user