Tests space-before-function-paren
This commit is contained in:
@@ -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: {
|
||||
|
Reference in New Issue
Block a user