From 08357be5c25288ac1dc1178b8afc7c3e289c7899 Mon Sep 17 00:00:00 2001 From: Maggie Allen Date: Mon, 25 Nov 2019 12:59:22 +0000 Subject: [PATCH] =?UTF-8?q?remove=20reference=20to=20teaserUsePromotionalT?= =?UTF-8?q?itle=20flag=20in=20tests=20=20=F0=9F=90=BF=20v2.12.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/presenters/teaser-presenter.spec.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tests/presenters/teaser-presenter.spec.js b/tests/presenters/teaser-presenter.spec.js index 2364f3b..8719e79 100644 --- a/tests/presenters/teaser-presenter.spec.js +++ b/tests/presenters/teaser-presenter.spec.js @@ -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' };