Rename data attribute to body

This commit is contained in:
Tautvidas Sipavičius
2015-09-25 12:42:46 +03:00
parent d7029f3d29
commit 89a9c040a8
4 changed files with 8 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ define([
beforeEach(function() {
model = new (ContentComponent.NewsletterModel)({
data: {
body: {
globalStyles: {
style1: 'style1Value',
style2: 'style2Value',
@@ -81,7 +81,7 @@ define([
};
var json = ContentComponent.toJSON();
expect(json).to.deep.equal(_.extend({
data: {
body: {
content: dataField,
globalStyles: stylesField
},