Decreasing priority of court 2 because team reserves it :sad:
This commit is contained in:
parent
32c82d1ae6
commit
a0405e7027
2 changed files with 3 additions and 3 deletions
|
|
@ -68,7 +68,7 @@ const CourtSlotToNumber: Record<CourtSlot, number> = {
|
|||
// Lower is better
|
||||
const CourtRank: Record<CourtSlot, number> = {
|
||||
[CourtSlot.One]: 2,
|
||||
[CourtSlot.Two]: 0,
|
||||
[CourtSlot.Two]: 1, // team at squash city has this pre-booked at 19.15 on Tuesday :sad:
|
||||
[CourtSlot.Three]: 1, // team at squash city has this pre-booked at 19.15 on Tuesday :sad:
|
||||
[CourtSlot.Four]: 0,
|
||||
[CourtSlot.Five]: 99, // shitty
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ describe('baanreserveren.service', () => {
|
|||
describe('performSpeedyReservation', () => {
|
||||
it.each([
|
||||
[18, 15, CourtSlot.Seven, CourtSlot.Six],
|
||||
[18, 30, CourtSlot.Two, CourtSlot.Four],
|
||||
[18, 30, CourtSlot.Four, CourtSlot.Two],
|
||||
[18, 45, CourtSlot.Twelve, CourtSlot.Thirteen],
|
||||
])(
|
||||
'should try highest ranked court first',
|
||||
|
|
@ -90,7 +90,7 @@ describe('baanreserveren.service', () => {
|
|||
|
||||
it.each([
|
||||
[18, 15, CourtSlot.Seven, CourtSlot.Eight],
|
||||
[18, 30, CourtSlot.Two, CourtSlot.Four],
|
||||
[18, 30, CourtSlot.Four, CourtSlot.Two],
|
||||
[18, 45, CourtSlot.Twelve, CourtSlot.Thirteen],
|
||||
])(
|
||||
'should try backup if first rank is taken',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue