cal.pub0.org/packages/lib
Lucas Smith d81d772cdf
feat(lib): add more tests to lib package (#7210)
* feat(lib): add more tests to lib package

Add more tests to the lib package to make it more robust overall. Additionally, tidy any methods that can be modified without changing behaviour and tighten types where possible.

* fix(lib): update missed imports

* fix: revert stylistic changes

* Update getSchedule.test.ts

---------

Co-authored-by: Omar López <zomars@me.com>
2023-03-10 22:10:56 +00:00
..
apps Only return enabled apps in getEnabledApps (#6653) 2023-01-23 16:27:20 -07:00
browser
cva
date-fns fix/[cal-1091]-Changing the timezone in profile settings doesn't change the date of the booking - only the time (#7598) 2023-03-09 10:18:22 +00:00
hooks Fix ColorPicker not showing up and Auto theme not working (#7626) 2023-03-09 11:57:59 -07:00
payment Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
server [CAL-988] Limit total appointment time per day/week/month/year (#7166) 2023-03-10 21:00:19 +01:00
sync Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
test [CAL-988] Limit total appointment time per day/week/month/year (#7166) 2023-03-10 21:00:19 +01:00
CalEventParser.ts Fix "User Added Question" Label in Email and Calendar Invite (#7559) 2023-03-07 17:50:54 +00:00
CalendarService.ts fix(calendar): recurring event fix (#6959) 2023-03-10 10:58:26 -07:00
CloseCom.ts
CloseComeUtils.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
CustomBranding.test.tsx feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
CustomBranding.tsx feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
OgImages.tsx Feat/add screenshot og image variant (#6138) 2022-12-21 10:39:14 +00:00
PaymentService.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
Sendgrid.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
auth.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
availability.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
classNames.ts Tailwind Merge (#6596) 2023-01-20 15:19:12 +01:00
constants.ts Adds ability to add custom sender names for workflow emails (#6463) 2023-01-18 15:32:39 +01:00
convertToNewDurationType.ts
crypto.ts
default-cookies.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
defaultAvatarImage.test.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
defaultAvatarImage.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
defaultEvents.ts [CAL-988] Limit total appointment time per day/week/month/year (#7166) 2023-03-10 21:00:19 +01:00
deriveAppDictKeyFromType.ts
env.ts
errors.ts Upgrades typescript to 4.9.4 (#6747) 2023-01-26 18:50:56 -07:00
fetchUsername.ts
findDurationType.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
getEventTypeById.ts [CAL-988] Limit total appointment time per day/week/month/year (#7166) 2023-03-10 21:00:19 +01:00
getIP.ts
getLabelValueMapFromResponses.ts Fix "User Added Question" Label in Email and Calendar Invite (#7559) 2023-03-07 17:50:54 +00:00
getPaymentAppData.ts Reduce booking page bundle size (#7131) 2023-02-17 12:53:31 -07:00
getSafeRedirectUrl.ts Make sure returnTo is correct URL (#6189) 2023-01-05 12:55:55 -07:00
hasKeyInMetadata.ts
http-error.ts
i18n.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
index.ts [CAL-988] Limit total appointment time per day/week/month/year (#7166) 2023-03-10 21:00:19 +01:00
isBookingLimits.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
isCalcom.ts
isDurationLimits.ts [CAL-988] Limit total appointment time per day/week/month/year (#7166) 2023-03-10 21:00:19 +01:00
isMac.ts
isOutOfBounds.tsx Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
isPrismaObj.ts
isProblematicTimezone.ts Fix: Filter Timezones by cities (#7540) 2023-03-06 17:52:20 +00:00
isRecurringEvent.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
jsonUtils.ts
logger.ts Allows to override default debug level for logger (#6300) 2023-01-05 16:23:50 -07:00
markdownIt.ts Fixes formatting issues with lists in event type description and bio (#7505) 2023-03-04 00:20:13 +01:00
next-seo.config.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
notEmpty.ts
objectKeys.ts
package.json Upgrades typescript to 4.9.4 (#6747) 2023-01-26 18:50:56 -07:00
random.test.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
random.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
rateLimit.ts
recurringStrings.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
sanitizeCalendarObject.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
serverConfig.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
slots.ts Fix/DST issues (#7462) 2023-03-03 09:33:16 -07:00
slugify.ts
telemetry.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
text.test.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
text.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
timeFormat.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
timezone.ts Fix: Filter Timezones by cities (#7540) 2023-03-06 17:52:20 +00:00
tsconfig.json feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
tsconfig.test.json feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
turndownService.ts Fix shift-enter in bio editor (#6769) 2023-01-27 23:14:58 +00:00
validateIntervalLimitOrder.ts [CAL-988] Limit total appointment time per day/week/month/year (#7166) 2023-03-10 21:00:19 +01:00
webstorage.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
weekday.test.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
weekday.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00