Skip to content

Commit

Permalink
DTSCCI-1486: Fix label mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudha-deshpande committed Feb 7, 2025
1 parent 3e58ed3 commit 869a9db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/common/models/evidence/evidenceType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ export function convertToEvidenceTypeToTranslationKey(type: EvidenceType): strin
case EvidenceType.STATEMENT_OF_ACCOUNT:
return 'PAGES.CHECK_YOUR_ANSWER.EVIDENCE_STATEMENT_OF_ACCOUNT';
case EvidenceType.OTHER:
return 'PAGES.CHECK_YOUR_ANSWER.VIDENCE_OTHER';
return 'PAGES.CHECK_YOUR_ANSWER.EVIDENCE_OTHER';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ describe('Partial Admit - Response Details', () => {
expect(summarySections.sections[constVal.INDEX_RESPONSE_DETAILS_SECTION].summaryList.rows[14].actions?.items[0].href).toBe(CITIZEN_EVIDENCE_URL.replace(':id', constVal.CLAIM_ID));
expect(summarySections.sections[constVal.INDEX_RESPONSE_DETAILS_SECTION].summaryList.rows[14].actions?.items[0].text).toBe(constVal.PAGES_CHECK_YOUR_ANSWER_CHANGE);

expect(summarySections.sections[constVal.INDEX_RESPONSE_DETAILS_SECTION].summaryList.rows[15].key.text).toBe('PAGES.CHECK_YOUR_ANSWER.VIDENCE_OTHER');
expect(summarySections.sections[constVal.INDEX_RESPONSE_DETAILS_SECTION].summaryList.rows[15].key.text).toBe('PAGES.CHECK_YOUR_ANSWER.EVIDENCE_OTHER');
expect(summarySections.sections[constVal.INDEX_RESPONSE_DETAILS_SECTION].summaryList.rows[15].value.html).toBe('Evidence details 8');
expect(summarySections.sections[constVal.INDEX_RESPONSE_DETAILS_SECTION].summaryList.rows[15].actions?.items[0].href).toBe(CITIZEN_EVIDENCE_URL.replace(':id', constVal.CLAIM_ID));
expect(summarySections.sections[constVal.INDEX_RESPONSE_DETAILS_SECTION].summaryList.rows[15].actions?.items[0].text).toBe(constVal.PAGES_CHECK_YOUR_ANSWER_CHANGE);
Expand Down

0 comments on commit 869a9db

Please sign in to comment.