cal.pub0.org/apps/web/test/lib
Alex van Andel c8744768c4
Refactored buildSlots (#6389)
* Refactored buildSlots

* Added typing for computedAvailableSlots

* Adds very simple boundary logic to make sure slots start at the right times

* Logic was cutting off too early

* Woops, should be eventLength, not frequency

* Expect 12:15 slots as availability is till 12:30 for booking

* Deliberately skip test for testing purposes

* slotInterval overrides intervals, but not duration

* Fix calendar mocking

* Another 45m length

* Unskip :(

* Fix test

Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
Co-authored-by: Omar López <zomars@me.com>
2023-01-11 17:33:34 +00:00
..
checkBookingLimits.test.ts
getAggregateWorkingHours.test.ts
getAvailabilityFromSchedule.test.ts
getSchedule.test.ts Refactored buildSlots (#6389) 2023-01-11 17:33:34 +00:00
getWorkingHours.test.ts
parseZone.test.ts
slots.test.ts
team-event-types.test.ts