@ministryofjustice/hmpps-probation-integration-e2e-tests 1.136.0 → 1.138.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ministryofjustice/hmpps-probation-integration-e2e-tests",
|
|
3
3
|
"description": "Playwright end to end tests for hmpps-probation-integration-services.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.138.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/ministryofjustice/hmpps-probation-integration-e2e-tests#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"@typescript-eslint/parser": "^8.0.1",
|
|
30
30
|
"eslint-config-prettier": "^10.0.1",
|
|
31
31
|
"eslint-plugin-prettier": "^5.2.1",
|
|
32
|
-
"prettier": "3.7.
|
|
33
|
-
"tsdown": "^0.
|
|
32
|
+
"prettier": "3.7.4",
|
|
33
|
+
"tsdown": "^0.17.1"
|
|
34
34
|
},
|
|
35
35
|
"exports": {
|
|
36
36
|
"./steps/accredited-programmes/application": "./steps/accredited-programmes/application.mjs",
|
|
@@ -2,7 +2,7 @@ import { Person } from "../delius/utils/person.mjs";
|
|
|
2
2
|
import { Address } from "../delius/address/create-address.mjs";
|
|
3
3
|
|
|
4
4
|
//#region steps/court-case/hearing-data.d.ts
|
|
5
|
-
declare const
|
|
5
|
+
declare const OXFORD_MAGISTRATE_COURT: {
|
|
6
6
|
code: string;
|
|
7
7
|
description: string;
|
|
8
8
|
};
|
|
@@ -93,4 +93,4 @@ declare const hearingData: (person: Person, address?: Address, court?: {
|
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
95
|
//#endregion
|
|
96
|
-
export {
|
|
96
|
+
export { OXFORD_MAGISTRATE_COURT, hearingData };
|
|
@@ -4,11 +4,11 @@ import { faker } from "@faker-js/faker";
|
|
|
4
4
|
import { randomUUID } from "crypto";
|
|
5
5
|
|
|
6
6
|
//#region steps/court-case/hearing-data.ts
|
|
7
|
-
const
|
|
8
|
-
code: "
|
|
9
|
-
description: "
|
|
7
|
+
const OXFORD_MAGISTRATE_COURT = {
|
|
8
|
+
code: "B43KB00",
|
|
9
|
+
description: "Oxford Magistrates Court"
|
|
10
10
|
};
|
|
11
|
-
const hearingData = (person, address = buildAddress(), court =
|
|
11
|
+
const hearingData = (person, address = buildAddress(), court = OXFORD_MAGISTRATE_COURT, caseId = randomUUID()) => ({ hearing: {
|
|
12
12
|
id: randomUUID(),
|
|
13
13
|
hearingDays: [{
|
|
14
14
|
listedDurationMinutes: 60,
|
|
@@ -81,4 +81,4 @@ const hearingData = (person, address = buildAddress(), court = SHEFFIELD_COURT,
|
|
|
81
81
|
} });
|
|
82
82
|
|
|
83
83
|
//#endregion
|
|
84
|
-
export {
|
|
84
|
+
export { OXFORD_MAGISTRATE_COURT, hearingData };
|