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 Feat Booking Limits (#4759) 2022-10-12 05:29:04 +00:00
getAggregateWorkingHours.test.ts Fix/Round Robin (#6121) 2022-12-21 19:32:42 +00:00
getAvailabilityFromSchedule.test.ts Consolidates dayjs in a single package 2022-06-28 14:48:24 -06:00
getSchedule.test.ts Refactored buildSlots (#6389) 2023-01-11 17:33:34 +00:00
getWorkingHours.test.ts Fixes collective availability for teams with overlapping day timezones (#3898) 2022-08-22 23:53:51 +00:00
parseZone.test.ts Consolidates dayjs in a single package 2022-06-28 14:48:24 -06:00
slots.test.ts Fix/Round Robin (#6121) 2022-12-21 19:32:42 +00:00
team-event-types.test.ts Fixes collective availability for teams with overlapping day timezones (#3898) 2022-08-22 23:53:51 +00:00