@defra-fish/gafl-webapp-service 1.63.0-rc.16 → 1.63.0-rc.18
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/gafl-webapp-service",
|
|
3
|
-
"version": "1.63.0-rc.
|
|
3
|
+
"version": "1.63.0-rc.18",
|
|
4
4
|
"description": "The websales frontend for the GAFL service",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"prepare": "gulp --gulpfile build/gulpfile.cjs"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@defra-fish/business-rules-lib": "1.63.0-rc.
|
|
40
|
-
"@defra-fish/connectors-lib": "1.63.0-rc.
|
|
39
|
+
"@defra-fish/business-rules-lib": "1.63.0-rc.18",
|
|
40
|
+
"@defra-fish/connectors-lib": "1.63.0-rc.18",
|
|
41
41
|
"@defra/hapi-gapi": "^2.0.0",
|
|
42
42
|
"@hapi/boom": "^9.1.2",
|
|
43
43
|
"@hapi/catbox-redis": "^6.0.2",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"./gafl-jest-matchers.js"
|
|
80
80
|
]
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "d21455813e5eddb476706bdfb49a75ea2f1c9404"
|
|
83
83
|
}
|
|
@@ -66,7 +66,7 @@ Array [
|
|
|
66
66
|
"text": Symbol(contact-summary-row-address),
|
|
67
67
|
},
|
|
68
68
|
"value": Object {
|
|
69
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
69
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
70
70
|
},
|
|
71
71
|
},
|
|
72
72
|
Object {
|
|
@@ -131,7 +131,7 @@ Array [
|
|
|
131
131
|
"text": Symbol(contact-summary-row-address),
|
|
132
132
|
},
|
|
133
133
|
"value": Object {
|
|
134
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
134
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
135
135
|
},
|
|
136
136
|
},
|
|
137
137
|
Object {
|
|
@@ -196,7 +196,7 @@ Array [
|
|
|
196
196
|
"text": Symbol(contact-summary-row-address),
|
|
197
197
|
},
|
|
198
198
|
"value": Object {
|
|
199
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
199
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
200
200
|
},
|
|
201
201
|
},
|
|
202
202
|
Object {
|
|
@@ -261,7 +261,7 @@ Array [
|
|
|
261
261
|
"text": Symbol(contact-summary-row-address),
|
|
262
262
|
},
|
|
263
263
|
"value": Object {
|
|
264
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
264
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
265
265
|
},
|
|
266
266
|
},
|
|
267
267
|
Object {
|
|
@@ -326,7 +326,7 @@ Array [
|
|
|
326
326
|
"text": Symbol(contact-summary-row-address),
|
|
327
327
|
},
|
|
328
328
|
"value": Object {
|
|
329
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
329
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
330
330
|
},
|
|
331
331
|
},
|
|
332
332
|
Object {
|
|
@@ -392,7 +392,7 @@ Array [
|
|
|
392
392
|
"text": Symbol(contact-summary-row-address),
|
|
393
393
|
},
|
|
394
394
|
"value": Object {
|
|
395
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
395
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
396
396
|
},
|
|
397
397
|
},
|
|
398
398
|
Object {
|
|
@@ -458,7 +458,7 @@ Array [
|
|
|
458
458
|
"text": Symbol(contact-summary-row-address),
|
|
459
459
|
},
|
|
460
460
|
"value": Object {
|
|
461
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
461
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
462
462
|
},
|
|
463
463
|
},
|
|
464
464
|
Object {
|
|
@@ -563,7 +563,7 @@ Array [
|
|
|
563
563
|
"text": Symbol(contact-summary-row-address),
|
|
564
564
|
},
|
|
565
565
|
"value": Object {
|
|
566
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
566
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
567
567
|
},
|
|
568
568
|
},
|
|
569
569
|
Object {
|
|
@@ -648,7 +648,7 @@ Array [
|
|
|
648
648
|
"text": Symbol(contact-summary-row-address),
|
|
649
649
|
},
|
|
650
650
|
"value": Object {
|
|
651
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
651
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
652
652
|
},
|
|
653
653
|
},
|
|
654
654
|
Object {
|
|
@@ -753,7 +753,7 @@ Array [
|
|
|
753
753
|
"text": Symbol(contact-summary-row-address),
|
|
754
754
|
},
|
|
755
755
|
"value": Object {
|
|
756
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
756
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
757
757
|
},
|
|
758
758
|
},
|
|
759
759
|
Object {
|
|
@@ -838,7 +838,7 @@ Array [
|
|
|
838
838
|
"text": Symbol(contact-summary-row-address),
|
|
839
839
|
},
|
|
840
840
|
"value": Object {
|
|
841
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
841
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
842
842
|
},
|
|
843
843
|
},
|
|
844
844
|
Object {
|
|
@@ -944,7 +944,7 @@ Array [
|
|
|
944
944
|
"text": Symbol(contact-summary-row-address),
|
|
945
945
|
},
|
|
946
946
|
"value": Object {
|
|
947
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
947
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
948
948
|
},
|
|
949
949
|
},
|
|
950
950
|
Object {
|
|
@@ -1030,7 +1030,7 @@ Array [
|
|
|
1030
1030
|
"text": Symbol(contact-summary-row-address),
|
|
1031
1031
|
},
|
|
1032
1032
|
"value": Object {
|
|
1033
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
1033
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
1034
1034
|
},
|
|
1035
1035
|
},
|
|
1036
1036
|
Object {
|
|
@@ -1136,7 +1136,7 @@ Array [
|
|
|
1136
1136
|
"text": Symbol(contact-summary-row-address),
|
|
1137
1137
|
},
|
|
1138
1138
|
"value": Object {
|
|
1139
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
1139
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
1140
1140
|
},
|
|
1141
1141
|
},
|
|
1142
1142
|
Object {
|
|
@@ -1222,7 +1222,7 @@ Array [
|
|
|
1222
1222
|
"text": Symbol(contact-summary-row-address),
|
|
1223
1223
|
},
|
|
1224
1224
|
"value": Object {
|
|
1225
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
1225
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
1226
1226
|
},
|
|
1227
1227
|
},
|
|
1228
1228
|
Object {
|
|
@@ -1327,7 +1327,7 @@ Array [
|
|
|
1327
1327
|
"text": Symbol(contact-summary-row-address),
|
|
1328
1328
|
},
|
|
1329
1329
|
"value": Object {
|
|
1330
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
1330
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
1331
1331
|
},
|
|
1332
1332
|
},
|
|
1333
1333
|
Object {
|
|
@@ -1432,7 +1432,7 @@ Array [
|
|
|
1432
1432
|
"text": Symbol(contact-summary-row-address),
|
|
1433
1433
|
},
|
|
1434
1434
|
"value": Object {
|
|
1435
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
1435
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
1436
1436
|
},
|
|
1437
1437
|
},
|
|
1438
1438
|
Object {
|
|
@@ -1537,7 +1537,7 @@ Array [
|
|
|
1537
1537
|
"text": Symbol(contact-summary-row-address),
|
|
1538
1538
|
},
|
|
1539
1539
|
"value": Object {
|
|
1540
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
1540
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
1541
1541
|
},
|
|
1542
1542
|
},
|
|
1543
1543
|
Object {
|
|
@@ -1642,7 +1642,7 @@ Array [
|
|
|
1642
1642
|
"text": Symbol(contact-summary-row-address),
|
|
1643
1643
|
},
|
|
1644
1644
|
"value": Object {
|
|
1645
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
1645
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
1646
1646
|
},
|
|
1647
1647
|
},
|
|
1648
1648
|
Object {
|
|
@@ -1748,7 +1748,7 @@ Array [
|
|
|
1748
1748
|
"text": Symbol(contact-summary-row-address),
|
|
1749
1749
|
},
|
|
1750
1750
|
"value": Object {
|
|
1751
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
1751
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
1752
1752
|
},
|
|
1753
1753
|
},
|
|
1754
1754
|
Object {
|
|
@@ -1854,7 +1854,7 @@ Array [
|
|
|
1854
1854
|
"text": Symbol(contact-summary-row-address),
|
|
1855
1855
|
},
|
|
1856
1856
|
"value": Object {
|
|
1857
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
1857
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
1858
1858
|
},
|
|
1859
1859
|
},
|
|
1860
1860
|
Object {
|
|
@@ -1960,7 +1960,7 @@ Array [
|
|
|
1960
1960
|
"text": Symbol(contact-summary-row-address),
|
|
1961
1961
|
},
|
|
1962
1962
|
"value": Object {
|
|
1963
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
1963
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
1964
1964
|
},
|
|
1965
1965
|
},
|
|
1966
1966
|
Object {
|
|
@@ -2046,7 +2046,7 @@ Array [
|
|
|
2046
2046
|
"text": Symbol(contact-summary-row-address),
|
|
2047
2047
|
},
|
|
2048
2048
|
"value": Object {
|
|
2049
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
2049
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
2050
2050
|
},
|
|
2051
2051
|
},
|
|
2052
2052
|
Object {
|
|
@@ -2152,7 +2152,7 @@ Array [
|
|
|
2152
2152
|
"text": Symbol(contact-summary-row-address),
|
|
2153
2153
|
},
|
|
2154
2154
|
"value": Object {
|
|
2155
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
2155
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
2156
2156
|
},
|
|
2157
2157
|
},
|
|
2158
2158
|
Object {
|
|
@@ -2238,7 +2238,7 @@ Array [
|
|
|
2238
2238
|
"text": Symbol(contact-summary-row-address),
|
|
2239
2239
|
},
|
|
2240
2240
|
"value": Object {
|
|
2241
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
2241
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
2242
2242
|
},
|
|
2243
2243
|
},
|
|
2244
2244
|
Object {
|
|
@@ -2345,7 +2345,7 @@ Array [
|
|
|
2345
2345
|
"text": Symbol(contact-summary-row-address),
|
|
2346
2346
|
},
|
|
2347
2347
|
"value": Object {
|
|
2348
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
2348
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
2349
2349
|
},
|
|
2350
2350
|
},
|
|
2351
2351
|
Object {
|
|
@@ -2432,7 +2432,7 @@ Array [
|
|
|
2432
2432
|
"text": Symbol(contact-summary-row-address),
|
|
2433
2433
|
},
|
|
2434
2434
|
"value": Object {
|
|
2435
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
2435
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
2436
2436
|
},
|
|
2437
2437
|
},
|
|
2438
2438
|
Object {
|
|
@@ -2539,7 +2539,7 @@ Array [
|
|
|
2539
2539
|
"text": Symbol(contact-summary-row-address),
|
|
2540
2540
|
},
|
|
2541
2541
|
"value": Object {
|
|
2542
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
2542
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
2543
2543
|
},
|
|
2544
2544
|
},
|
|
2545
2545
|
Object {
|
|
@@ -2626,7 +2626,7 @@ Array [
|
|
|
2626
2626
|
"text": Symbol(contact-summary-row-address),
|
|
2627
2627
|
},
|
|
2628
2628
|
"value": Object {
|
|
2629
|
-
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
2629
|
+
"text": "14 Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England",
|
|
2630
2630
|
},
|
|
2631
2631
|
},
|
|
2632
2632
|
Object {
|
|
@@ -30,7 +30,7 @@ jest.mock('../../../../processors/mapping-constants', () => ({
|
|
|
30
30
|
|
|
31
31
|
jest.mock('../../../../processors/refdata-helper.js', () => ({
|
|
32
32
|
countries: {
|
|
33
|
-
nameFromCode: async () => '
|
|
33
|
+
nameFromCode: async () => 'England'
|
|
34
34
|
}
|
|
35
35
|
}))
|
|
36
36
|
|
|
@@ -133,9 +133,10 @@ describe('contact-summary > route', () => {
|
|
|
133
133
|
street: 'howecroft court',
|
|
134
134
|
locality: 'eastmead lane',
|
|
135
135
|
town: 'bristol',
|
|
136
|
-
postcode: 'BS9 1HJ'
|
|
136
|
+
postcode: 'BS9 1HJ',
|
|
137
|
+
country: 'England'
|
|
137
138
|
},
|
|
138
|
-
'Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ,
|
|
139
|
+
'Howecroft Court, Eastmead Lane, Bristol, BS9 1HJ, England'
|
|
139
140
|
],
|
|
140
141
|
[
|
|
141
142
|
'street',
|
|
@@ -144,9 +145,10 @@ describe('contact-summary > route', () => {
|
|
|
144
145
|
street: undefined,
|
|
145
146
|
locality: 'eastmead lane',
|
|
146
147
|
town: 'bristol',
|
|
147
|
-
postcode: 'BS9 1HJ'
|
|
148
|
+
postcode: 'BS9 1HJ',
|
|
149
|
+
country: 'England'
|
|
148
150
|
},
|
|
149
|
-
'14, Eastmead Lane, Bristol, BS9 1HJ,
|
|
151
|
+
'14, Eastmead Lane, Bristol, BS9 1HJ, England'
|
|
150
152
|
],
|
|
151
153
|
[
|
|
152
154
|
'locality',
|
|
@@ -155,9 +157,10 @@ describe('contact-summary > route', () => {
|
|
|
155
157
|
street: 'howecroft court',
|
|
156
158
|
locality: undefined,
|
|
157
159
|
town: 'bristol',
|
|
158
|
-
postcode: 'BS9 1HJ'
|
|
160
|
+
postcode: 'BS9 1HJ',
|
|
161
|
+
country: 'Northern Ireland'
|
|
159
162
|
},
|
|
160
|
-
'14, Howecroft Court, Bristol, BS9 1HJ,
|
|
163
|
+
'14, Howecroft Court, Bristol, BS9 1HJ, Northern Ireland'
|
|
161
164
|
],
|
|
162
165
|
[
|
|
163
166
|
'town',
|
|
@@ -166,16 +169,17 @@ describe('contact-summary > route', () => {
|
|
|
166
169
|
street: 'howecroft court',
|
|
167
170
|
locality: 'eastmead lane',
|
|
168
171
|
town: undefined,
|
|
169
|
-
postcode: 'BS9 1HJ'
|
|
172
|
+
postcode: 'BS9 1HJ',
|
|
173
|
+
country: 'Wales'
|
|
170
174
|
},
|
|
171
|
-
'14, Howecroft Court, Eastmead Lane, BS9 1HJ,
|
|
175
|
+
'14, Howecroft Court, Eastmead Lane, BS9 1HJ, Wales'
|
|
172
176
|
]
|
|
173
177
|
])('omits %s when undefined', (missingField, licenseeOverrides, expectedAddress) => {
|
|
174
178
|
const permission = getMockPermission(licenseeOverrides)
|
|
175
179
|
const request = getRequestMock({ permission })
|
|
176
180
|
const rowGenerator = new route.RowGenerator(request, permission)
|
|
177
181
|
|
|
178
|
-
const row = rowGenerator.generateAddressRow(
|
|
182
|
+
const row = rowGenerator.generateAddressRow(licenseeOverrides.country)
|
|
179
183
|
|
|
180
184
|
expect(row.value.text).toBe(expectedAddress)
|
|
181
185
|
})
|