Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
remove reference to teaserUsePromotionalTitle flag in tests
Browse files Browse the repository at this point in the history
 🐿 v2.12.4
  • Loading branch information
magsallen committed Nov 25, 2019
1 parent 7b41300 commit 08357be
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tests/presenters/teaser-presenter.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -675,24 +675,6 @@ describe('Teaser Presenter', () => {

});

describe('get isTeaserPromoActive', () => {
const flagOn = { teaserUsePromotionalTitle: true };

it('returns true if promo title configured', () => {
const flags = Object.assign({}, flagOn);
subject = new Presenter( Object.assign({}, {flags} ) );
sinon.stub(subject, 'teaserPromoTitleText').get(() => 'somePromoText');
expect(subject.isTeaserPromoActive).to.equal(true);
});
it('returns false if no promo title configured', () => {
const flags = Object.assign({}, flagOn);
subject = new Presenter(Object.assign({}, {flags} ));
sinon.stub(subject, 'teaserPromoTitleText').get(() => null);
expect(subject.isTeaserPromoActive).to.equal(false);
});

});

describe('get teaserPromoTitleText', () => {
const title = { title: 'title'};
const promotionalTitle = { promotionalTitle: 'promotional' };
Expand Down

0 comments on commit 08357be

Please sign in to comment.