Skip to content

Commit

Permalink
feat(FN-3669): use getFormattedMonetaryValue helper instead of hardco…
Browse files Browse the repository at this point in the history
…ded -- review comment
  • Loading branch information
sw-mattw committed Jan 15, 2025
1 parent 2f19745 commit 3acb528
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
aPortalSessionUser,
CURRENCY,
FeeRecordCorrectionReviewInformation,
getFormattedMonetaryValue,
mapReasonsToDisplayValues,
PORTAL_LOGIN_STATUS,
} from '@ukef/dtfs2-common';
Expand Down Expand Up @@ -88,7 +89,7 @@ describe('controllers/utilisation-reports/record-corrections/check-the-informati
exporter,
reportedFees: {
currency: reportedFeesCurrency,
formattedAmount: '1,234.56',
formattedAmount: getFormattedMonetaryValue(reportedFeesAmount),

Check failure on line 92 in portal/server/controllers/utilisation-report-service/record-correction/check-the-information/index.test.ts

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

portal/server/controllers/utilisation-report-service/record-correction/check-the-information/index.test.ts#L92

Unsafe assignment of an error typed value.

Check failure on line 92 in portal/server/controllers/utilisation-report-service/record-correction/check-the-information/index.test.ts

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

portal/server/controllers/utilisation-report-service/record-correction/check-the-information/index.test.ts#L92

Unsafe call of an `error` type typed value.
},
};

Expand Down

0 comments on commit 3acb528

Please sign in to comment.