Fix javascript tests

[MAILPOET-2281]
This commit is contained in:
Amine Ben hammou
2019-09-25 01:36:38 +01:00
committed by Jack Kitterhing
parent b17ade80c2
commit 61cd5e1cc2
2 changed files with 35 additions and 5 deletions

View File

@@ -10,6 +10,9 @@ describe('Heading', function () {
var model = new Backbone.SuperModel({
subject: 'a test subject',
});
model.isWoocommerceTransactional = function () {
return false;
};
view = new (HeadingComponent.HeadingView)({
model: model,
});
@@ -26,6 +29,9 @@ describe('Heading', function () {
subject: 'a test subject',
preheader: 'a test preheader',
});
model.isWoocommerceTransactional = function () {
return false;
};
view = new (HeadingComponent.HeadingView)({
model: model,
});