Skip to content

Commit

Permalink
Remove name-blind sift and phone assessment from timeline (#753)
Browse files Browse the repository at this point in the history
* remove name-blind sift and phone assessment from timeline

* fix timeline tests

* delete commented code

Co-authored-by: HalcyonJAC <79906532+HalcyonJAC@users.noreply.github.com>
  • Loading branch information
tomlovesgithub and HalcyonJAC authored May 20, 2021
1 parent 8caaa1f commit eb2af55
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 44 deletions.
22 changes: 0 additions & 22 deletions src/helpers/Timeline/exerciseTimeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
22 changes: 0 additions & 22 deletions tests/unit/helpers/Timeline/exerciseTimeline.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit eb2af55

Please sign in to comment.