From 58c25df891d4d1a48906610df15c6a6506339b72 Mon Sep 17 00:00:00 2001 From: Brendan Myers <6362494+BearHanded@users.noreply.github.com> Date: Fri, 8 Dec 2023 15:33:20 -0500 Subject: [PATCH] [CMDCT-3120] Remove zero validation errors from aab-ch validation set (#2012) --- services/ui-src/src/measures/2023/AABCH/index.test.tsx | 4 ---- services/ui-src/src/measures/2023/AABCH/validation.ts | 4 ---- 2 files changed, 8 deletions(-) diff --git a/services/ui-src/src/measures/2023/AABCH/index.test.tsx b/services/ui-src/src/measures/2023/AABCH/index.test.tsx index 6f87b28c9e..a680193686 100644 --- a/services/ui-src/src/measures/2023/AABCH/index.test.tsx +++ b/services/ui-src/src/measures/2023/AABCH/index.test.tsx @@ -191,15 +191,11 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => { expect(V.validateReasonForNotReporting).not.toHaveBeenCalled(); expect(V.validateAtLeastOneRateComplete).toHaveBeenCalled(); expect(V.validateNumeratorsLessThanDenominatorsPM).toHaveBeenCalled(); - expect(V.validateRateNotZeroPM).toHaveBeenCalled(); - expect(V.validateRateZeroPM).toHaveBeenCalled(); expect(V.validateBothDatesCompleted).toHaveBeenCalled(); expect(V.validateAtLeastOneDataSource).toHaveBeenCalled(); expect(V.validateAtLeastOneDataSourceType).toHaveBeenCalled(); expect(V.validateAtLeastOneDeviationFieldFilled).toHaveBeenCalled(); expect(V.validateNumeratorLessThanDenominatorOMS).toHaveBeenCalled(); - expect(V.validateRateZeroOMS).toHaveBeenCalled(); - expect(V.validateRateNotZeroOMS).toHaveBeenCalled(); expect(V.validateTotalNDR).toHaveBeenCalled(); expect(V.validateOMSTotalNDR).toHaveBeenCalled(); expect(V.validateRequiredRadioButtonForCombinedRates).toHaveBeenCalled(); diff --git a/services/ui-src/src/measures/2023/AABCH/validation.ts b/services/ui-src/src/measures/2023/AABCH/validation.ts index 561ae5205f..fbfd842fac 100644 --- a/services/ui-src/src/measures/2023/AABCH/validation.ts +++ b/services/ui-src/src/measures/2023/AABCH/validation.ts @@ -34,8 +34,6 @@ const AABCHValidation = (data: FormData) => { ageGroups, PMD.categories ), - ...GV.validateRateZeroPM(performanceMeasureArray, OPM, ageGroups, data), - ...GV.validateRateNotZeroPM(performanceMeasureArray, OPM, ageGroups), ...GV.validateAtLeastOneDeviationFieldFilled( didCalculationsDeviate, deviationReason @@ -65,8 +63,6 @@ const AABCHValidation = (data: FormData) => { validationCallbacks: [ GV.validateNumeratorLessThanDenominatorOMS(), GV.validateOMSTotalNDR(), - GV.validateRateNotZeroOMS(), - GV.validateRateZeroOMS(), ], }), ];