Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(9056): amend test type json #211

Merged
merged 3 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions tests/resources/test-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -1768,7 +1768,7 @@
"suggestedTestTypeDisplayOrder": "4",
"forVehicleType": ["hgv", "trl"],
"forVehicleSize": null,
"forProvisionalStatus": true,
"forProvisionalStatusOnly": true,
"forVehicleConfiguration": null,
"forVehicleAxles": [2, 3, 4, 5, 6, 7, 8, 9, 10],
"forEuVehicleCategory": [
Expand Down Expand Up @@ -1978,7 +1978,7 @@
"suggestedTestTypeDisplayName": "First test",
"suggestedTestTypeDisplayOrder": "3",
"forVehicleType": ["trl"],
"forProvisionalStatus": true,
"forProvisionalStatusOnly": true,
"forVehicleSize": null,
"forVehicleConfiguration": null,
"forVehicleAxles": [1],
Expand Down Expand Up @@ -3724,7 +3724,7 @@
"suggestedTestTypeDisplayName": "Paid first test retest",
"suggestedTestTypeDisplayOrder": "1",
"forVehicleType": ["hgv", "trl"],
"forProvisionalStatus": true,
"forProvisionalStatusOnly": true,
"forVehicleSize": null,
"forVehicleConfiguration": null,
"forVehicleAxles": [2, 3, 4, 5, 6, 7, 8, 9, 10],
Expand Down Expand Up @@ -3934,7 +3934,7 @@
"suggestedTestTypeDisplayName": "Part paid first test retest",
"suggestedTestTypeDisplayOrder": "2",
"forVehicleType": ["hgv", "trl"],
"forProvisionalStatus": true,
"forProvisionalStatusOnly": true,
"forVehicleSize": null,
"forVehicleConfiguration": null,
"forVehicleAxles": [2, 3, 4, 5, 6, 7, 8, 9, 10],
Expand Down Expand Up @@ -4143,7 +4143,7 @@
"testTypeName": "Free first test retest",
"suggestedTestTypeDisplayName": "Free first test retest",
"suggestedTestTypeDisplayOrder": "3",
"forProvisionalStatus": true,
"forProvisionalStatusOnly": true,
"forVehicleType": ["trl"],
"forVehicleSize": null,
"forVehicleConfiguration": null,
Expand Down Expand Up @@ -4411,7 +4411,7 @@
"suggestedTestTypeDisplayName": "Paid first test retest",
"suggestedTestTypeDisplayOrder": "1",
"forVehicleType": ["trl"],
"forProvisionalStatus": true,
"forProvisionalStatusOnly": true,
"forVehicleSize": null,
"forVehicleConfiguration": null,
"forVehicleAxles": [1],
Expand Down Expand Up @@ -4479,7 +4479,7 @@
"suggestedTestTypeDisplayName": "Part paid first test retest",
"suggestedTestTypeDisplayOrder": "2",
"forVehicleType": ["trl"],
"forProvisionalStatus": true,
"forProvisionalStatusOnly": true,
"forVehicleSize": null,
"forVehicleConfiguration": null,
"forVehicleAxles": [1],
Expand Down Expand Up @@ -6336,7 +6336,7 @@
"name": "Full Inspection/ Fee - With certification",
"testTypeName": "Paid prohibition clearance on first test (full inspection with certification)",
"forVehicleType": ["hgv", "trl"],
"forProvisionalStatus": true,
"forProvisionalStatusOnly": true,
"forVehicleSize": null,
"forVehicleConfiguration": null,
"forVehicleAxles": [2, 3, 4, 5, 6, 7, 8, 9, 10],
Expand Down Expand Up @@ -6544,7 +6544,7 @@
"name": "Retest - Paid",
"testTypeName": "Paid retest prohibition clearance on first test",
"forVehicleType": ["hgv", "trl"],
"forProvisionalStatus": true,
"forProvisionalStatusOnly": true,
"forVehicleSize": null,
"forVehicleConfiguration": null,
"forVehicleAxles": [2, 3, 4, 5, 6, 7, 8, 9, 10],
Expand Down Expand Up @@ -7463,7 +7463,7 @@
"name": "Full Inspection/ Fee - With certification",
"testTypeName": "Paid prohibition clearance on first test (full inspection with certification)",
"forVehicleType": ["trl"],
"forProvisionalStatus": true,
"forProvisionalStatusOnly": true,
"forVehicleSize": null,
"forVehicleConfiguration": null,
"forVehicleAxles": [1],
Expand Down Expand Up @@ -7529,7 +7529,7 @@
"name": "Retest - Paid",
"testTypeName": "Paid retest prohibition clearance on first test",
"forVehicleType": ["trl"],
"forProvisionalStatus": true,
"forProvisionalStatusOnly": true,
"forVehicleSize": null,
"forVehicleConfiguration": null,
"forVehicleAxles": [1],
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/getTestTypesFunction.unitTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe("getTestTypes function", () => {
forVehicleSubclass,
forVehicleWheels,
testTypeClassification,
forProvisionalStatus,
forProvisionalStatusOnly,
testCodes,
} = JSON.parse(output.body);
expect(output.statusCode).toEqual(200);
Expand All @@ -119,7 +119,7 @@ describe("getTestTypes function", () => {
expect(forVehicleSubclass).toEqual(null);
expect(forVehicleWheels).toEqual(null);
expect(testTypeClassification).toEqual("Annual With Certificate");
expect(forProvisionalStatus).toEqual(true);
expect(forProvisionalStatusOnly).toEqual(true);
expect(testCodes[0].forProvisionalStatus).toEqual(true);
});
}
Expand Down