2022-10-23 11:55:47 +02:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
|
|
exports[`scheduler should handle valid requests outside of reservation window 1`] = `
|
2022-11-04 14:16:11 +01:00
|
|
|
{
|
|
|
|
|
"scheduledReservation": {
|
|
|
|
|
"reservation": {
|
2022-10-23 11:55:47 +02:00
|
|
|
"booked": false,
|
2022-11-04 14:16:11 +01:00
|
|
|
"dateRange": {
|
|
|
|
|
"end": {
|
2022-10-23 11:55:47 +02:00
|
|
|
"$D": 16,
|
|
|
|
|
"$H": 1,
|
|
|
|
|
"$L": "en",
|
|
|
|
|
"$M": 0,
|
|
|
|
|
"$W": 0,
|
2022-11-04 14:16:11 +01:00
|
|
|
"$d": {},
|
2022-10-23 11:55:47 +02:00
|
|
|
"$m": 15,
|
|
|
|
|
"$ms": 0,
|
|
|
|
|
"$s": 0,
|
2022-11-04 14:16:11 +01:00
|
|
|
"$x": {},
|
2022-10-23 11:55:47 +02:00
|
|
|
"$y": 2022,
|
|
|
|
|
},
|
2022-11-04 14:16:11 +01:00
|
|
|
"start": {
|
2022-10-23 11:55:47 +02:00
|
|
|
"$D": 16,
|
|
|
|
|
"$H": 1,
|
|
|
|
|
"$L": "en",
|
|
|
|
|
"$M": 0,
|
|
|
|
|
"$W": 0,
|
2022-11-04 14:16:11 +01:00
|
|
|
"$d": {},
|
2022-10-23 11:55:47 +02:00
|
|
|
"$m": 0,
|
|
|
|
|
"$ms": 0,
|
|
|
|
|
"$s": 0,
|
2022-11-04 14:16:11 +01:00
|
|
|
"$x": {},
|
2022-10-23 11:55:47 +02:00
|
|
|
"$y": 2022,
|
|
|
|
|
},
|
|
|
|
|
},
|
2022-11-04 14:16:11 +01:00
|
|
|
"opponent": {
|
2022-10-23 11:55:47 +02:00
|
|
|
"id": "123",
|
|
|
|
|
"name": "collin",
|
|
|
|
|
},
|
2022-11-04 14:16:11 +01:00
|
|
|
"possibleDates": [
|
|
|
|
|
{
|
2022-10-23 11:55:47 +02:00
|
|
|
"$D": 16,
|
|
|
|
|
"$H": 1,
|
|
|
|
|
"$L": "en",
|
|
|
|
|
"$M": 0,
|
|
|
|
|
"$W": 0,
|
2022-11-04 14:16:11 +01:00
|
|
|
"$d": {},
|
2022-10-23 11:55:47 +02:00
|
|
|
"$m": 0,
|
|
|
|
|
"$ms": 0,
|
|
|
|
|
"$s": 0,
|
2022-11-04 14:16:11 +01:00
|
|
|
"$x": {},
|
2022-10-23 11:55:47 +02:00
|
|
|
"$y": 2022,
|
|
|
|
|
},
|
2022-11-04 14:16:11 +01:00
|
|
|
{
|
2022-10-23 11:55:47 +02:00
|
|
|
"$D": 16,
|
|
|
|
|
"$H": 1,
|
|
|
|
|
"$L": "en",
|
|
|
|
|
"$M": 0,
|
|
|
|
|
"$W": 0,
|
2022-11-04 14:16:11 +01:00
|
|
|
"$d": {},
|
2022-10-23 11:55:47 +02:00
|
|
|
"$m": 15,
|
|
|
|
|
"$ms": 0,
|
|
|
|
|
"$s": 0,
|
2022-11-04 14:16:11 +01:00
|
|
|
"$x": {},
|
2022-10-23 11:55:47 +02:00
|
|
|
"$y": 2022,
|
|
|
|
|
},
|
|
|
|
|
],
|
2022-11-04 14:16:11 +01:00
|
|
|
"user": {
|
2022-10-23 11:55:47 +02:00
|
|
|
"password": Any<String>,
|
|
|
|
|
"username": "collin",
|
|
|
|
|
},
|
|
|
|
|
},
|
2022-11-04 14:16:11 +01:00
|
|
|
"scheduledFor": {
|
2022-10-23 11:55:47 +02:00
|
|
|
"$D": 9,
|
|
|
|
|
"$H": 0,
|
|
|
|
|
"$L": "en",
|
|
|
|
|
"$M": 0,
|
|
|
|
|
"$W": 0,
|
2022-11-04 14:16:11 +01:00
|
|
|
"$d": {},
|
2022-10-23 11:55:47 +02:00
|
|
|
"$m": 0,
|
|
|
|
|
"$ms": 0,
|
|
|
|
|
"$s": 0,
|
2022-11-04 14:16:11 +01:00
|
|
|
"$x": {},
|
2022-10-23 11:55:47 +02:00
|
|
|
"$y": 2022,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`scheduler should handle valid requests within reservation window 1`] = `
|
2022-11-04 14:16:11 +01:00
|
|
|
{
|
|
|
|
|
"scheduledReservation": {
|
|
|
|
|
"reservation": {
|
2022-10-23 11:55:47 +02:00
|
|
|
"booked": false,
|
2022-11-04 14:16:11 +01:00
|
|
|
"dateRange": {
|
|
|
|
|
"end": {
|
2022-10-23 11:55:47 +02:00
|
|
|
"$D": 1,
|
|
|
|
|
"$H": 1,
|
|
|
|
|
"$L": "en",
|
|
|
|
|
"$M": 0,
|
|
|
|
|
"$W": 6,
|
2022-11-04 14:16:11 +01:00
|
|
|
"$d": {},
|
2022-10-23 11:55:47 +02:00
|
|
|
"$m": 30,
|
|
|
|
|
"$ms": 0,
|
|
|
|
|
"$s": 0,
|
2022-11-04 14:16:11 +01:00
|
|
|
"$x": {},
|
2022-10-23 11:55:47 +02:00
|
|
|
"$y": 2022,
|
|
|
|
|
},
|
2022-11-04 14:16:11 +01:00
|
|
|
"start": {
|
2022-10-23 11:55:47 +02:00
|
|
|
"$D": 1,
|
|
|
|
|
"$H": 1,
|
|
|
|
|
"$L": "en",
|
|
|
|
|
"$M": 0,
|
|
|
|
|
"$W": 6,
|
2022-11-04 14:16:11 +01:00
|
|
|
"$d": {},
|
2022-10-23 11:55:47 +02:00
|
|
|
"$m": 15,
|
|
|
|
|
"$ms": 0,
|
|
|
|
|
"$s": 0,
|
2022-11-04 14:16:11 +01:00
|
|
|
"$x": {},
|
2022-10-23 11:55:47 +02:00
|
|
|
"$y": 2022,
|
|
|
|
|
},
|
|
|
|
|
},
|
2022-11-04 14:16:11 +01:00
|
|
|
"opponent": {
|
2022-10-23 11:55:47 +02:00
|
|
|
"id": "123",
|
|
|
|
|
"name": "collin",
|
|
|
|
|
},
|
2022-11-04 14:16:11 +01:00
|
|
|
"possibleDates": [
|
2022-10-23 11:55:47 +02:00
|
|
|
"2022-01-01T00:15:00.000Z",
|
|
|
|
|
"2022-01-01T00:30:00.000Z",
|
|
|
|
|
],
|
2022-11-04 14:16:11 +01:00
|
|
|
"user": {
|
2022-10-23 11:55:47 +02:00
|
|
|
"password": Any<String>,
|
|
|
|
|
"username": "collin",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
`;
|