Skip to content

Commit

Permalink
fix(cb2-12681): correct lists used in iva/msva validation (#427)
Browse files Browse the repository at this point in the history
* fix(cb2-12681): corrected validation util list

* fix(cb2-12681): corrected validation util list
  • Loading branch information
cb-cs authored Nov 14, 2024
1 parent 2e1f021 commit 81b115a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/utils/validationUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
HGV_TRL_RWT_TEST,
IVA_TEST,
LEC_TEST,
MSVA_TEST,
TIR_TEST,
} from '@dvsa/cvs-microservice-common/classes/testTypes/Constants';
import {
Expand Down Expand Up @@ -288,7 +289,10 @@ export class ValidationUtil {

private static isIvaTest(tests: TestTypeSchema[]): boolean {
return tests.every((test: TestTypeSchema) =>
TestTypeHelper.validateTestTypeIdInLists([IVA_TEST], test.testTypeId),
TestTypeHelper.validateTestTypeIdInLists(
[IVA_TEST, MSVA_TEST],
test.testTypeId,
),
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/resources/empty-seed.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{}
{}

0 comments on commit 81b115a

Please sign in to comment.