Tests space-before-function-paren

This commit is contained in:
Amine Ben hammou
2017-09-27 15:41:06 +00:00
parent bb8591a67b
commit 68165b7b78
20 changed files with 202 additions and 203 deletions

View File

@@ -4,7 +4,7 @@ const sinon = global.sinon;
define([
'newsletter_editor/App',
'newsletter_editor/blocks/divider'
], function(App, DividerBlock) {
], function (App, DividerBlock) {
var EditorApplication = App;
describe('Divider', function () {
@@ -157,7 +157,7 @@ define([
var model;
var view;
before(function() {
before(function () {
global.stubChannel(EditorApplication);
global.stubAvailableStyles(EditorApplication, {
dividers: ['solid', 'inset']
@@ -200,13 +200,13 @@ define([
expect(model.get('styles.block.backgroundColor')).to.equal('#cccccc');
});
it('changes color of available divider styles when actual divider color changes', function() {
it('changes color of available divider styles when actual divider color changes', function () {
var newColor = '#889912';
view.$('.mailpoet_field_divider_border_color').val(newColor).change();
expect(view.$('.mailpoet_field_divider_style div')).to.have.$css('border-top-color', newColor);
});
it('does not display "Apply to all" option when `hideApplyToAll` option is active', function() {
it('does not display "Apply to all" option when `hideApplyToAll` option is active', function () {
view = new (DividerBlock.DividerBlockSettingsView)({
model: model,
renderOptions: {