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/button'
], function(App, ButtonBlock) {
], function (App, ButtonBlock) {
var EditorApplication = App;
describe('Button', function () {
@ -322,7 +322,7 @@ define([
describe('once rendered', function () {
var model;
var view;
before(function() {
before(function () {
global.stubChannel(EditorApplication);
global.stubConfig(EditorApplication);
global.stubAvailableStyles(EditorApplication, {
@ -331,7 +331,7 @@ define([
});
});
beforeEach(function() {
beforeEach(function () {
model = new (ButtonBlock.ButtonBlockModel)({
type: 'button',
text: 'Some random text'
@ -453,7 +453,7 @@ define([
expect(view.$('.mailpoet_field_button_line_height_input').val()).to.equal('37');
});
it('does not display link option when `hideLink` option is active', function() {
it('does not display link option when `hideLink` option is active', function () {
view = new (ButtonBlock.ButtonBlockSettingsView)({
model: model,
renderOptions: {
@ -464,7 +464,7 @@ define([
expect(view.$('.mailpoet_field_button_url').length).to.equal(0);
});
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 (ButtonBlock.ButtonBlockSettingsView)({
model: model,
renderOptions: {