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