Tests: padded-blocks
This commit is contained in:
@ -11,8 +11,6 @@
|
|||||||
// Exceptions
|
// Exceptions
|
||||||
"func-names": 0,
|
"func-names": 0,
|
||||||
// Temporary
|
// Temporary
|
||||||
"no-underscore-dangle": 0,
|
"no-underscore-dangle": 0
|
||||||
// To add
|
|
||||||
"padded-blocks": 0
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,6 @@ global.expect = chai.expect;
|
|||||||
global.sinon = sinon;
|
global.sinon = sinon;
|
||||||
|
|
||||||
if (!global.document || !global.window) {
|
if (!global.document || !global.window) {
|
||||||
|
|
||||||
global.document = jsdom('<html><head><script></script></head><body></body></html>', {}, {
|
global.document = jsdom('<html><head><script></script></head><body></body></html>', {}, {
|
||||||
FetchExternalResources: ['script'],
|
FetchExternalResources: ['script'],
|
||||||
ProcessExternalResources: ['script'],
|
ProcessExternalResources: ['script'],
|
||||||
@ -22,7 +21,6 @@ if (!global.document || !global.window) {
|
|||||||
|
|
||||||
global.window = document.parentWindow;
|
global.window = document.parentWindow;
|
||||||
global.navigator = global.window.navigator;
|
global.navigator = global.window.navigator;
|
||||||
|
|
||||||
}
|
}
|
||||||
const testHelpers = require('./loadHelpers.js');
|
const testHelpers = require('./loadHelpers.js');
|
||||||
global.testHelpers = testHelpers;
|
global.testHelpers = testHelpers;
|
||||||
|
@ -121,7 +121,6 @@ define([
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('once rendered', function () {
|
describe('once rendered', function () {
|
||||||
|
|
||||||
describe('on root level', function () {
|
describe('on root level', function () {
|
||||||
var model = new (ContainerBlock.ContainerBlockModel)();
|
var model = new (ContainerBlock.ContainerBlockModel)();
|
||||||
var view;
|
var view;
|
||||||
@ -186,7 +185,6 @@ define([
|
|||||||
expect(view.$('.mailpoet_duplicate_block')).to.have.length(1);
|
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.fontColor')).to.equal('#345678');
|
||||||
expect(innerModel.get('styles.link.textDecoration')).to.equal('underline');
|
expect(innerModel.get('styles.link.textDecoration')).to.equal('underline');
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('block view', function () {
|
describe('block view', function () {
|
||||||
|
@ -6,7 +6,6 @@ define([
|
|||||||
'newsletter_editor/blocks/social',
|
'newsletter_editor/blocks/social',
|
||||||
'backbone'
|
'backbone'
|
||||||
], function (EditorApplication, SocialBlock, Backbone) {
|
], function (EditorApplication, SocialBlock, Backbone) {
|
||||||
|
|
||||||
describe('Social', function () {
|
describe('Social', function () {
|
||||||
describe('block model', function () {
|
describe('block model', function () {
|
||||||
var model;
|
var model;
|
||||||
|
@ -4,7 +4,6 @@ define([
|
|||||||
'newsletter_editor/App',
|
'newsletter_editor/App',
|
||||||
'newsletter_editor/blocks/text'
|
'newsletter_editor/blocks/text'
|
||||||
], function (EditorApplication, TextBlock) {
|
], function (EditorApplication, TextBlock) {
|
||||||
|
|
||||||
describe('Text', function () {
|
describe('Text', function () {
|
||||||
describe('model', function () {
|
describe('model', function () {
|
||||||
var model;
|
var model;
|
||||||
|
@ -7,7 +7,6 @@ define([
|
|||||||
'newsletter_editor/components/communication',
|
'newsletter_editor/components/communication',
|
||||||
'amd-inject-loader!newsletter_editor/components/communication'
|
'amd-inject-loader!newsletter_editor/components/communication'
|
||||||
], function (EditorApplication, Communication, CommunicationInjector) {
|
], function (EditorApplication, Communication, CommunicationInjector) {
|
||||||
|
|
||||||
describe('getPostTypes', function () {
|
describe('getPostTypes', function () {
|
||||||
it('fetches post types from the server', function () {
|
it('fetches post types from the server', function () {
|
||||||
var module = CommunicationInjector({
|
var module = CommunicationInjector({
|
||||||
|
@ -4,7 +4,6 @@ define([
|
|||||||
'newsletter_editor/App',
|
'newsletter_editor/App',
|
||||||
'newsletter_editor/components/config'
|
'newsletter_editor/components/config'
|
||||||
], function (EditorApplication, ConfigComponent) {
|
], function (EditorApplication, ConfigComponent) {
|
||||||
|
|
||||||
describe('Config', function () {
|
describe('Config', function () {
|
||||||
it('loads and stores configuration', function () {
|
it('loads and stores configuration', function () {
|
||||||
var model;
|
var model;
|
||||||
|
@ -5,7 +5,6 @@ define([
|
|||||||
'newsletter_editor/App',
|
'newsletter_editor/App',
|
||||||
'newsletter_editor/components/heading'
|
'newsletter_editor/components/heading'
|
||||||
], function (EditorApplication, HeadingComponent) {
|
], function (EditorApplication, HeadingComponent) {
|
||||||
|
|
||||||
describe('Heading', function () {
|
describe('Heading', function () {
|
||||||
describe('view', function () {
|
describe('view', function () {
|
||||||
var view;
|
var view;
|
||||||
|
@ -97,7 +97,6 @@ define([
|
|||||||
|
|
||||||
mock.verify();
|
mock.verify();
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('view', function () {
|
describe('view', function () {
|
||||||
@ -194,7 +193,6 @@ define([
|
|||||||
expect(spy).to.have.callCount(1);
|
expect(spy).to.have.callCount(1);
|
||||||
expect(spy).to.have.been.calledWith('beforeEditorSave');
|
expect(spy).to.have.been.calledWith('beforeEditorSave');
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -5,7 +5,6 @@ define([
|
|||||||
'newsletter_editor/App',
|
'newsletter_editor/App',
|
||||||
'newsletter_editor/components/sidebar'
|
'newsletter_editor/components/sidebar'
|
||||||
], function (EditorApplication, SidebarComponent) {
|
], function (EditorApplication, SidebarComponent) {
|
||||||
|
|
||||||
describe('Sidebar', function () {
|
describe('Sidebar', function () {
|
||||||
describe('content view', function () {
|
describe('content view', function () {
|
||||||
var view;
|
var view;
|
||||||
|
Reference in New Issue
Block a user