fix: slug value in webhook payload (#12290)
Co-authored-by: Udit Takkar <[email protected]> Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
7 files changed
+12
-12
No files matched your search
@@ -103,12 +103,11 @@ test.describe("BOOKING_CREATED", async () => {
|
||||
body.payload.videoCallData = dynamic;
|
||||
body.payload.appsStatus = dynamic;
|
||||
body.payload.metadata.videoCallUrl = dynamic;
|
||||
|
||||
expect(body).toMatchObject({
|
||||
triggerEvent: "BOOKING_CREATED",
|
||||
createdAt: "[redacted/dynamic]",
|
||||
payload: {
|
||||
type: "30 min",
|
||||
type: "30-min",
|
||||
title: "30 min between Nameless and Test Testson",
|
||||
description: "",
|
||||
additionalNotes: "",
|
||||
@@ -236,7 +235,7 @@ test.describe("BOOKING_REJECTED", async () => {
|
||||
triggerEvent: "BOOKING_REJECTED",
|
||||
createdAt: "[redacted/dynamic]",
|
||||
payload: {
|
||||
type: "Opt in",
|
||||
type: "opt-in",
|
||||
title: "Opt in between Nameless and Test Testson",
|
||||
customInputs: {},
|
||||
startTime: "[redacted/dynamic]",
|
||||
@@ -357,7 +356,7 @@ test.describe("BOOKING_REQUESTED", async () => {
|
||||
triggerEvent: "BOOKING_REQUESTED",
|
||||
createdAt: "[redacted/dynamic]",
|
||||
payload: {
|
||||
type: "Opt in",
|
||||
type: "opt-in",
|
||||
title: "Opt in between Nameless and Test Testson",
|
||||
customInputs: {},
|
||||
startTime: "[redacted/dynamic]",
|
||||
|
||||
@@ -1261,7 +1261,7 @@ export function getExpectedCalEventForBookingRequest({
|
||||
}) {
|
||||
return {
|
||||
// keep adding more fields as needed, so that they can be verified in all scenarios
|
||||
type: eventType.title,
|
||||
type: eventType.slug,
|
||||
// Not sure why, but milliseconds are missing in cal Event.
|
||||
startTime: bookingRequest.start.replace(".000Z", "Z"),
|
||||
endTime: bookingRequest.end.replace(".000Z", "Z"),
|
||||
|
||||
Reference in new issue
Block a user