Fix tests comma-dangle eslint rule [MAILPOET-1028]
This commit is contained in:
committed by
pavel-mailpoet
parent
66c6f52646
commit
f0c59ff635
@ -1,7 +1,7 @@
|
||||
define([
|
||||
'newsletter_editor/App',
|
||||
'newsletter_editor/blocks/social',
|
||||
'backbone',
|
||||
'backbone'
|
||||
], function(EditorApplication, SocialBlock, Backbone) {
|
||||
|
||||
describe('Social', function () {
|
||||
@ -29,9 +29,9 @@ define([
|
||||
global.stubConfig(EditorApplication, {
|
||||
blockDefaults: {
|
||||
social: {
|
||||
iconSet: 'customConfigIconSet',
|
||||
},
|
||||
},
|
||||
iconSet: 'customConfigIconSet'
|
||||
}
|
||||
}
|
||||
});
|
||||
var model = new (SocialBlock.SocialBlockModel)();
|
||||
|
||||
@ -44,15 +44,15 @@ define([
|
||||
before(function () {
|
||||
global.stubChannel(EditorApplication);
|
||||
global.stubAvailableStyles(EditorApplication, {
|
||||
'socialIconSets.default.custom': 'someimage.jpg',
|
||||
'socialIconSets.default.custom': 'someimage.jpg'
|
||||
});
|
||||
global.stubConfig(EditorApplication, {
|
||||
socialIcons: {
|
||||
custom: {
|
||||
defaultLink: 'http://example.org',
|
||||
title: 'sometitle',
|
||||
title: 'sometitle'
|
||||
}
|
||||
},
|
||||
}
|
||||
});
|
||||
model = new (SocialBlock.SocialIconModel)();
|
||||
});
|
||||
@ -91,19 +91,19 @@ define([
|
||||
global.stubAvailableStyles(EditorApplication, {
|
||||
socialIconSets: {
|
||||
'default': {
|
||||
'custom': 'http://www.sott.net/images/icons/big_x.png',
|
||||
'custom': 'http://www.sott.net/images/icons/big_x.png'
|
||||
},
|
||||
'light': {
|
||||
'custom': 'http://content.indiainfoline.com/wc/news/ImageGallery/css/close_32x32.png',
|
||||
},
|
||||
'custom': 'http://content.indiainfoline.com/wc/news/ImageGallery/css/close_32x32.png'
|
||||
}
|
||||
},
|
||||
socialIcons: {
|
||||
'custom': {
|
||||
title: 'Custom',
|
||||
linkFieldName: 'Page URL',
|
||||
defaultLink: 'http://example.org',
|
||||
},
|
||||
},
|
||||
defaultLink: 'http://example.org'
|
||||
}
|
||||
}
|
||||
});
|
||||
model = new (SocialBlock.SocialBlockModel)({
|
||||
type: 'social',
|
||||
@ -114,9 +114,9 @@ define([
|
||||
iconType: 'custom',
|
||||
link: 'somelink.htm',
|
||||
image: 'someimage.png',
|
||||
text: 'some text',
|
||||
text: 'some text'
|
||||
}
|
||||
],
|
||||
]
|
||||
});
|
||||
});
|
||||
|
||||
@ -140,16 +140,16 @@ define([
|
||||
iconType: 'custom',
|
||||
link: 'http://example.org/',
|
||||
image: 'http://example.org/someimage.png',
|
||||
text: 'some text',
|
||||
text: 'some text'
|
||||
},
|
||||
{
|
||||
type: 'socialIcon',
|
||||
iconType: 'facebook',
|
||||
link: 'http://facebook.com/',
|
||||
image: 'http://facebook.com/icon.png',
|
||||
text: 'Facebook icon',
|
||||
},
|
||||
],
|
||||
text: 'Facebook icon'
|
||||
}
|
||||
]
|
||||
});
|
||||
view = new (SocialBlock.SocialBlockView)({model: model});
|
||||
view.render();
|
||||
@ -175,19 +175,19 @@ define([
|
||||
global.stubAvailableStyles(EditorApplication, {
|
||||
socialIconSets: {
|
||||
'default': {
|
||||
'custom': 'someimage.png',
|
||||
'custom': 'someimage.png'
|
||||
},
|
||||
'light': {
|
||||
'custom': 'http://content.indiainfoline.com/wc/news/ImageGallery/css/close_32x32.png',
|
||||
},
|
||||
'custom': 'http://content.indiainfoline.com/wc/news/ImageGallery/css/close_32x32.png'
|
||||
}
|
||||
},
|
||||
socialIcons: {
|
||||
'custom': {
|
||||
title: 'Custom',
|
||||
linkFieldName: 'Page URL',
|
||||
defaultLink: 'http://example.org',
|
||||
},
|
||||
},
|
||||
defaultLink: 'http://example.org'
|
||||
}
|
||||
}
|
||||
});
|
||||
model = new (SocialBlock.SocialBlockModel)({
|
||||
type: 'social',
|
||||
@ -200,9 +200,9 @@ define([
|
||||
image: 'someimage.png',
|
||||
height: '32px',
|
||||
width: '32px',
|
||||
text: 'some text',
|
||||
text: 'some text'
|
||||
}
|
||||
],
|
||||
]
|
||||
});
|
||||
});
|
||||
|
||||
@ -218,19 +218,19 @@ define([
|
||||
global.stubAvailableStyles(EditorApplication, {
|
||||
socialIconSets: {
|
||||
'default': {
|
||||
'custom': 'http://www.sott.net/images/icons/big_x.png',
|
||||
'custom': 'http://www.sott.net/images/icons/big_x.png'
|
||||
},
|
||||
'light': {
|
||||
'custom': 'http://content.indiainfoline.com/wc/news/ImageGallery/css/close_32x32.png',
|
||||
},
|
||||
'custom': 'http://content.indiainfoline.com/wc/news/ImageGallery/css/close_32x32.png'
|
||||
}
|
||||
},
|
||||
socialIcons: {
|
||||
'custom': {
|
||||
title: 'Custom',
|
||||
linkFieldName: 'Page URL',
|
||||
defaultLink: 'http://example.org',
|
||||
},
|
||||
},
|
||||
defaultLink: 'http://example.org'
|
||||
}
|
||||
}
|
||||
});
|
||||
model = new (SocialBlock.SocialBlockModel)({
|
||||
type: 'social',
|
||||
@ -243,9 +243,9 @@ define([
|
||||
image: 'someimage.png',
|
||||
height: '32px',
|
||||
width: '32px',
|
||||
text: 'some text',
|
||||
text: 'some text'
|
||||
}
|
||||
],
|
||||
]
|
||||
});
|
||||
view = new (SocialBlock.SocialBlockSettingsView)({model: model});
|
||||
view.render();
|
||||
|
Reference in New Issue
Block a user