fixing tests

This commit is contained in:
Amine Ben hammou
2017-09-27 12:15:49 +00:00
parent 98a3c6b156
commit c29dc8b4c7
2 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,8 @@ define([
'backbone.supermodel', 'backbone.supermodel',
'underscore', 'underscore',
'jquery', 'jquery',
'mailpoet' 'mailpoet',
'modal'
], function(App, Marionette, SuperModel, _, jQuery, MailPoet) { ], function(App, Marionette, SuperModel, _, jQuery, MailPoet) {
'use strict'; 'use strict';

View File

@ -303,6 +303,7 @@ define([
EditorApplication.getBlockTypeModel = sinon.stub().returns(Backbone.Model); EditorApplication.getBlockTypeModel = sinon.stub().returns(Backbone.Model);
EditorApplication.getBlockTypeView = sinon.stub().returns(Backbone.View); EditorApplication.getBlockTypeView = sinon.stub().returns(Backbone.View);
model = {set: sinon.stub()}; model = {set: sinon.stub()};
new (AutomatedLatestContentBlock.AutomatedLatestContentBlockView)({model: model});
}); });
it('listens to the event', function () { it('listens to the event', function () {