Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak committed Jul 3, 2024
1 parent d3f13cd commit 4bfee4b
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 4 deletions.
8 changes: 6 additions & 2 deletions examples/data/planningPermission/major.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ export const planningPermissionMajor: Schema = {
surfaceWaterDisposal: 'drainageSystem',
},
units: {
total: 25,
residential: [
{
type: {value: 'house', description: 'House'},
Expand All @@ -442,7 +443,7 @@ export const planningPermissionMajor: Schema = {
},
{
type: {value: 'house', description: 'House'},
tenure: 'MH',
tenure: {value: 'MH', description: 'Market housing'},
bedrooms: 4,
identicalUnits: 5,
},
Expand All @@ -457,7 +458,10 @@ export const planningPermissionMajor: Schema = {
},
{
type: {value: 'house', description: 'House'},
tenure: 'SAIR',
tenure: {
value: 'SAIR',
description: 'Social, affordable or interim rent',
},
bedrooms: 2,
identicalUnits: 2,
},
Expand Down
1 change: 1 addition & 0 deletions examples/data/planningPermission/minor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ export const planningPermissionMinor: Schema = {
boundary: 'white painted timber',
},
units: {
total: 1,
residential: [
{
type: {value: 'house', description: 'House'},
Expand Down
11 changes: 9 additions & 2 deletions examples/planningPermission/major.json
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,7 @@
"surfaceWaterDisposal": "drainageSystem"
},
"units": {
"total": 25,
"residential": [
{
"type": {
Expand All @@ -721,7 +722,10 @@
"value": "house",
"description": "House"
},
"tenure": "MH",
"tenure": {
"value": "MH",
"description": "Market housing"
},
"bedrooms": 4,
"identicalUnits": 5
},
Expand All @@ -742,7 +746,10 @@
"value": "house",
"description": "House"
},
"tenure": "SAIR",
"tenure": {
"value": "SAIR",
"description": "Social, affordable or interim rent"
},
"bedrooms": 2,
"identicalUnits": 2
}
Expand Down
1 change: 1 addition & 0 deletions examples/planningPermission/minor.json
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@
"boundary": "white painted timber"
},
"units": {
"total": 1,
"residential": [
{
"type": {
Expand Down
4 changes: 4 additions & 0 deletions schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23755,9 +23755,13 @@
"type": "object"
},
"type": "array"
},
"total": {
"type": "number"
}
},
"required": [
"total",
"residential"
],
"type": "object"
Expand Down
1 change: 1 addition & 0 deletions types/schema/data/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type OSRoadsSource = {
};

export type ResidentialUnits = {
total: number;
residential: {
type: UKResidentialUnitType;
tenure: UKTenureType;
Expand Down

0 comments on commit 4bfee4b

Please sign in to comment.