Skip to content

Commit d477804

Browse files
authored
Merge pull request #417 from NickPhura/ACRFD-4-2
ACRFD-4-2: Update amendment text.
2 parents c3d1577 + c46cb2a commit d477804

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/app/services/application.service.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,9 @@ describe('ApplicationService', () => {
275275
expect(service.getStatusStringLong(application)).toBe('Unknown Status');
276276
});
277277

278-
it('with status ABANDONED and reason AMENDMENT APPROVED - APPLICATION it returns "Amendment: Approved"', () => {
278+
it('with status ABANDONED and reason AMENDMENT APPROVED - APPLICATION it returns "Decision: Approved ..."', () => {
279279
application = new Application({ status: 'ABANDONED', reason: 'AMENDMENT APPROVED - APPLICATION' });
280-
expect(service.getStatusStringLong(application)).toBe('Amendment: Approved');
280+
expect(service.getStatusStringLong(application)).toBe('Decision: Approved - Tenure Issued');
281281
});
282282

283283
it('with status ABANDONED it returns "Abandoned"', () => {

src/app/utils/constants/application.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ export class StatusCodes implements ICodeSet {
7777
/**
7878
* Application Reason codes.
7979
*
80-
* Note: the reason code indicates additional information about the status code.
80+
* Note:
81+
* - the reason code indicates additional information about the status code.
82+
* - the reason codes don't have unique text, instead they use the same text as their Status
83+
* counterpart: (Decision_Approved and Decision_Not_Approved).
8184
*
8285
* @export
8386
* @class ReasonCodes
@@ -87,14 +90,14 @@ export class ReasonCodes implements ICodeSet {
8790
public static readonly AMENDMENT_APPROVED: ICodeGroup = {
8891
code: 'AMENDMENT APPROVED - APPLICATION',
8992
param: 'AA',
90-
text: { long: 'Amendment: Approved', short: 'Amendment: Approved' },
93+
text: { long: 'Decision: Approved - Tenure Issued', short: 'Approved' },
9194
mappedCodes: []
9295
};
9396

9497
public static readonly AMENDMENT_NOT_APPROVED: ICodeGroup = {
9598
code: 'AMENDMENT NOT APPROVED - APPLICATION',
9699
param: 'ANA',
97-
text: { long: 'Amendment: Not Approved', short: 'Amendment: Not Approved' },
100+
text: { long: 'Decision: Not Approved', short: 'Not Approved' },
98101
mappedCodes: []
99102
};
100103

0 commit comments

Comments
 (0)