Skip to content

Commit

Permalink
Merge pull request #417 from NickPhura/ACRFD-4-2
Browse files Browse the repository at this point in the history
ACRFD-4-2: Update amendment text.
  • Loading branch information
NickPhura authored Aug 15, 2019
2 parents c3d1577 + c46cb2a commit d477804
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app/services/application.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ describe('ApplicationService', () => {
expect(service.getStatusStringLong(application)).toBe('Unknown Status');
});

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

it('with status ABANDONED it returns "Abandoned"', () => {
Expand Down
9 changes: 6 additions & 3 deletions src/app/utils/constants/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ export class StatusCodes implements ICodeSet {
/**
* Application Reason codes.
*
* Note: the reason code indicates additional information about the status code.
* Note:
* - the reason code indicates additional information about the status code.
* - the reason codes don't have unique text, instead they use the same text as their Status
* counterpart: (Decision_Approved and Decision_Not_Approved).
*
* @export
* @class ReasonCodes
Expand All @@ -87,14 +90,14 @@ export class ReasonCodes implements ICodeSet {
public static readonly AMENDMENT_APPROVED: ICodeGroup = {
code: 'AMENDMENT APPROVED - APPLICATION',
param: 'AA',
text: { long: 'Amendment: Approved', short: 'Amendment: Approved' },
text: { long: 'Decision: Approved - Tenure Issued', short: 'Approved' },
mappedCodes: []
};

public static readonly AMENDMENT_NOT_APPROVED: ICodeGroup = {
code: 'AMENDMENT NOT APPROVED - APPLICATION',
param: 'ANA',
text: { long: 'Amendment: Not Approved', short: 'Amendment: Not Approved' },
text: { long: 'Decision: Not Approved', short: 'Not Approved' },
mappedCodes: []
};

Expand Down

0 comments on commit d477804

Please sign in to comment.