Change names of newsletter JSON attributes

This commit is contained in:
Tautvidas Sipavičius
2015-09-23 14:16:37 +03:00
parent 27a90f5ef1
commit fd7312fbf9
8 changed files with 27 additions and 27 deletions

View File

@ -9,11 +9,11 @@ define([
beforeEach(function() {
model = new (ContentComponent.NewsletterModel)({
styles: {
globalStyles: {
style1: 'style1Value',
style2: 'style2Value',
},
data: {
content: {
data1: 'data1Value',
data2: 'data2Value',
},
@ -79,8 +79,8 @@ define([
};
var json = ContentComponent.toJSON();
expect(json).to.deep.equal(_.extend({
data: dataField,
styles: stylesField
content: dataField,
globalStyles: stylesField
}, newsletterFields));
});
});