@tillhub/schemas 6.461.0 → 6.462.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
|
@@ -250,6 +250,20 @@ test('Configurations: payloads without opening_hours_exceptions remain valid', f
|
|
|
250
250
|
t.end()
|
|
251
251
|
})
|
|
252
252
|
|
|
253
|
+
test('Configurations: reservations customization accepts privacy_notice_url as string or null', function (t) {
|
|
254
|
+
t.plan(3)
|
|
255
|
+
;['https://example.com/privacy', null].forEach(function (privacyNoticeUrl) {
|
|
256
|
+
const valid = validateUpdatePayload({
|
|
257
|
+
reservations: { customization: { privacy_notice_url: privacyNoticeUrl } }
|
|
258
|
+
})
|
|
259
|
+
t.ok(valid, ajv.errorsText(validateUpdatePayload.errors))
|
|
260
|
+
})
|
|
261
|
+
t.notOk(validateUpdatePayload({
|
|
262
|
+
reservations: { customization: { privacy_notice_url: 123 } }
|
|
263
|
+
}), 'privacy_notice_url must be a string or null')
|
|
264
|
+
t.end()
|
|
265
|
+
})
|
|
266
|
+
|
|
253
267
|
test('Configurations: interfaces seeds scanner_apis.zebra.enabled when scanner_apis is absent', function (t) {
|
|
254
268
|
t.plan(2)
|
|
255
269
|
const ajvWithDefaults = new Ajv({ useDefaults: true })
|