Tests one-var

This commit is contained in:
Amine Ben hammou
2017-09-26 12:57:13 +00:00
parent 651c9f5692
commit 69c540288b
19 changed files with 187 additions and 158 deletions

View File

@ -65,8 +65,8 @@ define([
describe('block types', function() {
it('registers a block type view and model', function() {
var blockModel = new Backbone.SuperModel(),
blockView = new Backbone.View();
var blockModel = new Backbone.SuperModel();
var blockView = new Backbone.View();
ContentComponent.registerBlockType('testType', {
blockModel: blockModel,
blockView: blockView
@ -79,12 +79,14 @@ define([
describe('transformation to json', function() {
it('includes content, globalStyles and initial newsletter fields', function() {
var dataField = {
containerModelField: 'containerModelValue'
}, stylesField = {
globalStylesField: 'globalStylesValue'
}, newsletterFields = {
subject: 'test newsletter subject'
};
containerModelField: 'containerModelValue'
};
var stylesField = {
globalStylesField: 'globalStylesValue'
};
var newsletterFields = {
subject: 'test newsletter subject'
};
EditorApplication._contentContainer = {
toJSON: function() {
return dataField;