Skip to content

Commit

Permalink
feat(FN-3805): simplify test set up
Browse files Browse the repository at this point in the history
  • Loading branch information
RLavender98 committed Jan 30, 2025
1 parent 8ab146d commit 0afc241
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ context('When fee record correction feature flag is enabled', () => {
const correction = FeeRecordCorrectionEntityMockBuilder.forFeeRecordAndIsCompleted(correctedFeeRecord, true)
.withId(111)
.withReasons([RECORD_CORRECTION_REASON.REPORTED_FEE_INCORRECT])
.withCorrectedValues({ feesPaidToUkefForThePeriod: 200, feesPaidToUkefForThePeriodCurrency: null, facilityId: null, facilityUtilisation: null })
.withPreviousValues({ feesPaidToUkefForThePeriod: 100, feesPaidToUkefForThePeriodCurrency: null, facilityId: null, facilityUtilisation: null })
.withCorrectedValues({ feesPaidToUkefForThePeriod: 200 })
.withPreviousValues({ feesPaidToUkefForThePeriod: 100 })
.build();

const feeRecordWithoutCorrection = FeeRecordEntityMockBuilder.forReport(report)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ context('When fee record correction feature flag is enabled', () => {
const correctionTwo = FeeRecordCorrectionEntityMockBuilder.forFeeRecordAndIsCompleted(correctedFeeRecordOne, true)
.withId(222)
.withReasons([RECORD_CORRECTION_REASON.REPORTED_CURRENCY_INCORRECT])
.withCorrectedValues({ feesPaidToUkefForThePeriod: null, feesPaidToUkefForThePeriodCurrency: CURRENCY.GBP, facilityId: null, facilityUtilisation: null })
.withPreviousValues({ feesPaidToUkefForThePeriod: null, feesPaidToUkefForThePeriodCurrency: CURRENCY.EUR, facilityId: null, facilityUtilisation: null })
.withCorrectedValues({ feesPaidToUkefForThePeriodCurrency: CURRENCY.GBP })
.withPreviousValues({ feesPaidToUkefForThePeriodCurrency: CURRENCY.EUR })
.build();

const feeRecordWithoutCorrection = FeeRecordEntityMockBuilder.forReport(report)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ context('When fee record correction feature flag is enabled', () => {
const correction = FeeRecordCorrectionEntityMockBuilder.forFeeRecordAndIsCompleted(correctedFeeRecord, true)
.withId(111)
.withReasons([RECORD_CORRECTION_REASON.REPORTED_FEE_INCORRECT])
.withCorrectedValues({ feesPaidToUkefForThePeriod: 200, feesPaidToUkefForThePeriodCurrency: null, facilityId: null, facilityUtilisation: null })
.withPreviousValues({ feesPaidToUkefForThePeriod: 100, feesPaidToUkefForThePeriodCurrency: null, facilityId: null, facilityUtilisation: null })
.withCorrectedValues({ feesPaidToUkefForThePeriod: 200 })
.withPreviousValues({ feesPaidToUkefForThePeriod: 100 })
.build();

const { utilisationReportPage, utilisationReportConfirmDeletePaymentPage, utilisationReportEditPaymentPage } = pages;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ context('When fee record correction feature flag is enabled', () => {
const correction = FeeRecordCorrectionEntityMockBuilder.forFeeRecordAndIsCompleted(correctedFeeRecord, true)
.withId(111)
.withReasons([RECORD_CORRECTION_REASON.REPORTED_FEE_INCORRECT])
.withCorrectedValues({ feesPaidToUkefForThePeriod: 200, feesPaidToUkefForThePeriodCurrency: null, facilityId: null, facilityUtilisation: null })
.withPreviousValues({ feesPaidToUkefForThePeriod: 100, feesPaidToUkefForThePeriodCurrency: null, facilityId: null, facilityUtilisation: null })
.withCorrectedValues({ feesPaidToUkefForThePeriod: 200 })
.withPreviousValues({ feesPaidToUkefForThePeriod: 100 })
.build();

const feeRecordWithoutCorrection = FeeRecordEntityMockBuilder.forReport(report)
Expand Down

0 comments on commit 0afc241

Please sign in to comment.