diff --git a/src/helpers/Timeline/exerciseTimeline.js b/src/helpers/Timeline/exerciseTimeline.js index c29982eab..57f866253 100644 --- a/src/helpers/Timeline/exerciseTimeline.js +++ b/src/helpers/Timeline/exerciseTimeline.js @@ -79,28 +79,6 @@ const exerciseTimeline = (data) => { } if (data.shortlistingMethods && data.shortlistingMethods.length > 0) { - // timeline.push( - // { - // entry: 'Shortlisting', - // }, - // ); - - // if(data.shortlistingMethods.includes('paper-sift')) { - // timeline.push( - // createShortlistingMethod('Sift', data.siftStartDate, data.siftEndDate) - // ); - // } - - if (data.shortlistingMethods.includes('name-blind-paper-sift')) { - timeline.push( - createShortlistingMethod('Name-blind sift', data.nameBlindSiftStartDate, data.nameBlindSiftEndDate) - ); - } - - if (data.shortlistingMethods.includes('telephone-assessment')) { - timeline.push(createShortlistingMethod('Telephone assessment', data.telephoneAssessmentStartDate, data.telephoneAssessmentEndDate)); - } - if (data.shortlistingMethods.includes('situational-judgement-qualifying-test')) { if (data.situationalJudgementTestDate) { timeline.push( diff --git a/tests/unit/helpers/Timeline/exerciseTimeline.spec.js b/tests/unit/helpers/Timeline/exerciseTimeline.spec.js index 58e6bc957..091fc6bab 100644 --- a/tests/unit/helpers/Timeline/exerciseTimeline.spec.js +++ b/tests/unit/helpers/Timeline/exerciseTimeline.spec.js @@ -31,28 +31,6 @@ describe('helpers/Form/exerciseTimeline', () => { ]); }); }); - describe('shortlistingMethods', () => { - it('formats and returns', () => { - timelineArray = { - shortlistingMethods: [ - 'name-blind-paper-sift', - 'telephone-assessment', - ], - }; - expect(exerciseTimeline(timelineArray)).toEqual([ - { - 'date': undefined, - 'dateString': '', - 'entry': 'Name-blind sift', - }, - { - 'date': undefined, - 'dateString': '', - 'entry': 'Telephone assessment', - }, - ]); - }); - }); describe('shortlistingOutcomeDate', () => { it('formats and returns', () => { timelineArray = {