@defra-fish/sales-api-service 1.71.0 → 1.72.0-rc.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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defra-fish/sales-api-service",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.72.0-rc.0",
|
|
4
4
|
"description": "Rod Licensing Sales API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@defra-fish/business-rules-lib": "1.
|
|
39
|
-
"@defra-fish/connectors-lib": "1.
|
|
40
|
-
"@defra-fish/dynamics-lib": "1.
|
|
38
|
+
"@defra-fish/business-rules-lib": "1.72.0-rc.0",
|
|
39
|
+
"@defra-fish/connectors-lib": "1.72.0-rc.0",
|
|
40
|
+
"@defra-fish/dynamics-lib": "1.72.0-rc.0",
|
|
41
41
|
"@hapi/boom": "9.1.2",
|
|
42
42
|
"@hapi/hapi": "20.1.3",
|
|
43
43
|
"@hapi/inert": "6.0.3",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"moment-timezone": "0.5.34",
|
|
53
53
|
"uuid": "8.3.2"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "71d4c2b6fe30d0fccbf82d2c7f62b9df77026af9"
|
|
56
56
|
}
|
|
@@ -166,6 +166,7 @@ describe('preparePermissionDataForRenewal', () => {
|
|
|
166
166
|
['1960-05-13', 'turns 66 the day after licence start'],
|
|
167
167
|
['1960-12-25', 'turns 66 in > 6 months']
|
|
168
168
|
])("doesn't add senior concession if the licensee is 65 at licence start (DOB: %s, %s)", async birthDate => {
|
|
169
|
+
jest.useFakeTimers().setSystemTime(new Date('2026-04-01'))
|
|
169
170
|
const endDate = moment('2026-05-11')
|
|
170
171
|
const almostSeniorPermission = existingPermission({
|
|
171
172
|
endDate,
|
|
@@ -176,6 +177,7 @@ describe('preparePermissionDataForRenewal', () => {
|
|
|
176
177
|
})
|
|
177
178
|
const permission = await preparePermissionDataForRenewal(almostSeniorPermission)
|
|
178
179
|
expect(permission.concessions).toEqual([])
|
|
180
|
+
jest.useRealTimers()
|
|
179
181
|
})
|
|
180
182
|
|
|
181
183
|
it('should remove noLicenceRequired from licensee', async () => {
|