Updating snapshot and running prettier on tests
This commit is contained in:
parent
317c0cbdb0
commit
f0061827c9
2 changed files with 37 additions and 37 deletions
|
|
@ -1,86 +1,86 @@
|
||||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||||
|
|
||||||
exports[`scheduler should handle valid requests outside of reservation window 1`] = `
|
exports[`scheduler should handle valid requests outside of reservation window 1`] = `
|
||||||
Object {
|
{
|
||||||
"scheduledReservation": Object {
|
"scheduledReservation": {
|
||||||
"reservation": Object {
|
"reservation": {
|
||||||
"booked": false,
|
"booked": false,
|
||||||
"dateRange": Object {
|
"dateRange": {
|
||||||
"end": Object {
|
"end": {
|
||||||
"$D": 16,
|
"$D": 16,
|
||||||
"$H": 1,
|
"$H": 1,
|
||||||
"$L": "en",
|
"$L": "en",
|
||||||
"$M": 0,
|
"$M": 0,
|
||||||
"$W": 0,
|
"$W": 0,
|
||||||
"$d": Object {},
|
"$d": {},
|
||||||
"$m": 15,
|
"$m": 15,
|
||||||
"$ms": 0,
|
"$ms": 0,
|
||||||
"$s": 0,
|
"$s": 0,
|
||||||
"$x": Object {},
|
"$x": {},
|
||||||
"$y": 2022,
|
"$y": 2022,
|
||||||
},
|
},
|
||||||
"start": Object {
|
"start": {
|
||||||
"$D": 16,
|
"$D": 16,
|
||||||
"$H": 1,
|
"$H": 1,
|
||||||
"$L": "en",
|
"$L": "en",
|
||||||
"$M": 0,
|
"$M": 0,
|
||||||
"$W": 0,
|
"$W": 0,
|
||||||
"$d": Object {},
|
"$d": {},
|
||||||
"$m": 0,
|
"$m": 0,
|
||||||
"$ms": 0,
|
"$ms": 0,
|
||||||
"$s": 0,
|
"$s": 0,
|
||||||
"$x": Object {},
|
"$x": {},
|
||||||
"$y": 2022,
|
"$y": 2022,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"opponent": Object {
|
"opponent": {
|
||||||
"id": "123",
|
"id": "123",
|
||||||
"name": "collin",
|
"name": "collin",
|
||||||
},
|
},
|
||||||
"possibleDates": Array [
|
"possibleDates": [
|
||||||
Object {
|
{
|
||||||
"$D": 16,
|
"$D": 16,
|
||||||
"$H": 1,
|
"$H": 1,
|
||||||
"$L": "en",
|
"$L": "en",
|
||||||
"$M": 0,
|
"$M": 0,
|
||||||
"$W": 0,
|
"$W": 0,
|
||||||
"$d": Object {},
|
"$d": {},
|
||||||
"$m": 0,
|
"$m": 0,
|
||||||
"$ms": 0,
|
"$ms": 0,
|
||||||
"$s": 0,
|
"$s": 0,
|
||||||
"$x": Object {},
|
"$x": {},
|
||||||
"$y": 2022,
|
"$y": 2022,
|
||||||
},
|
},
|
||||||
Object {
|
{
|
||||||
"$D": 16,
|
"$D": 16,
|
||||||
"$H": 1,
|
"$H": 1,
|
||||||
"$L": "en",
|
"$L": "en",
|
||||||
"$M": 0,
|
"$M": 0,
|
||||||
"$W": 0,
|
"$W": 0,
|
||||||
"$d": Object {},
|
"$d": {},
|
||||||
"$m": 15,
|
"$m": 15,
|
||||||
"$ms": 0,
|
"$ms": 0,
|
||||||
"$s": 0,
|
"$s": 0,
|
||||||
"$x": Object {},
|
"$x": {},
|
||||||
"$y": 2022,
|
"$y": 2022,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
"user": Object {
|
"user": {
|
||||||
"password": Any<String>,
|
"password": Any<String>,
|
||||||
"username": "collin",
|
"username": "collin",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"scheduledFor": Object {
|
"scheduledFor": {
|
||||||
"$D": 9,
|
"$D": 9,
|
||||||
"$H": 0,
|
"$H": 0,
|
||||||
"$L": "en",
|
"$L": "en",
|
||||||
"$M": 0,
|
"$M": 0,
|
||||||
"$W": 0,
|
"$W": 0,
|
||||||
"$d": Object {},
|
"$d": {},
|
||||||
"$m": 0,
|
"$m": 0,
|
||||||
"$ms": 0,
|
"$ms": 0,
|
||||||
"$s": 0,
|
"$s": 0,
|
||||||
"$x": Object {},
|
"$x": {},
|
||||||
"$y": 2022,
|
"$y": 2022,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -88,47 +88,47 @@ Object {
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`scheduler should handle valid requests within reservation window 1`] = `
|
exports[`scheduler should handle valid requests within reservation window 1`] = `
|
||||||
Object {
|
{
|
||||||
"scheduledReservation": Object {
|
"scheduledReservation": {
|
||||||
"reservation": Object {
|
"reservation": {
|
||||||
"booked": false,
|
"booked": false,
|
||||||
"dateRange": Object {
|
"dateRange": {
|
||||||
"end": Object {
|
"end": {
|
||||||
"$D": 1,
|
"$D": 1,
|
||||||
"$H": 1,
|
"$H": 1,
|
||||||
"$L": "en",
|
"$L": "en",
|
||||||
"$M": 0,
|
"$M": 0,
|
||||||
"$W": 6,
|
"$W": 6,
|
||||||
"$d": Object {},
|
"$d": {},
|
||||||
"$m": 30,
|
"$m": 30,
|
||||||
"$ms": 0,
|
"$ms": 0,
|
||||||
"$s": 0,
|
"$s": 0,
|
||||||
"$x": Object {},
|
"$x": {},
|
||||||
"$y": 2022,
|
"$y": 2022,
|
||||||
},
|
},
|
||||||
"start": Object {
|
"start": {
|
||||||
"$D": 1,
|
"$D": 1,
|
||||||
"$H": 1,
|
"$H": 1,
|
||||||
"$L": "en",
|
"$L": "en",
|
||||||
"$M": 0,
|
"$M": 0,
|
||||||
"$W": 6,
|
"$W": 6,
|
||||||
"$d": Object {},
|
"$d": {},
|
||||||
"$m": 15,
|
"$m": 15,
|
||||||
"$ms": 0,
|
"$ms": 0,
|
||||||
"$s": 0,
|
"$s": 0,
|
||||||
"$x": Object {},
|
"$x": {},
|
||||||
"$y": 2022,
|
"$y": 2022,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"opponent": Object {
|
"opponent": {
|
||||||
"id": "123",
|
"id": "123",
|
||||||
"name": "collin",
|
"name": "collin",
|
||||||
},
|
},
|
||||||
"possibleDates": Array [
|
"possibleDates": [
|
||||||
"2022-01-01T00:15:00.000Z",
|
"2022-01-01T00:15:00.000Z",
|
||||||
"2022-01-01T00:30:00.000Z",
|
"2022-01-01T00:30:00.000Z",
|
||||||
],
|
],
|
||||||
"user": Object {
|
"user": {
|
||||||
"password": Any<String>,
|
"password": Any<String>,
|
||||||
"username": "collin",
|
"username": "collin",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -28,10 +28,10 @@ describe('scheduler', () => {
|
||||||
reservation: {
|
reservation: {
|
||||||
user: {
|
user: {
|
||||||
username: 'collin',
|
username: 'collin',
|
||||||
password: expect.any(String)
|
password: expect.any(String),
|
||||||
},
|
},
|
||||||
dateRange: { start, end },
|
dateRange: { start, end },
|
||||||
opponent: { id: '123', name: 'collin' }
|
opponent: { id: '123', name: 'collin' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue