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

@@ -5,7 +5,7 @@ define([
'newsletter_editor/App',
'newsletter_editor/blocks/social',
'backbone'
], function(EditorApplication, SocialBlock, Backbone) {
], function (EditorApplication, SocialBlock, Backbone) {
describe('Social', function () {
describe('block model', function () {
@@ -257,18 +257,18 @@ define([
view.render();
});
it('updates icons in settings if iconset changes', function() {
it('updates icons in settings if iconset changes', function () {
view.$('.mailpoet_social_icon_set').last().click();
expect(view.$('.mailpoet_social_icon_field_image').val()).to.equal(EditorApplication.getAvailableStyles().get('socialIconSets.light.custom'));
});
it('removes the icon when "remove" is clicked', function() {
it('removes the icon when "remove" is clicked', function () {
view.$('.mailpoet_delete_block').click();
expect(model.get('icons').length).to.equal(0);
expect(view.$('.mailpoet_social_icon_settings').length).to.equal(0);
});
it('adds another icon when "Add another social network" is pressed', function() {
it('adds another icon when "Add another social network" is pressed', function () {
view.$('.mailpoet_add_social_icon').click();
expect(model.get('icons').length).to.equal(2);
});