Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update index.test.ts

Kiran Kaee91d9b4af6
diff --git a/apps/web/tests/webhooks/index.test.ts b/apps/web/tests/webhooks/index.test.ts
index 4d81bc40af..cb599637fa 100644
--- a/apps/web/tests/webhooks/index.test.ts
+++ b/apps/web/tests/webhooks/index.test.ts
@@ -11,6 +11,7 @@ import {
import z from "@/lib/zod";
import { CustomerSchema } from "@/lib/zod/schemas/customers";
import { linkEventSchema } from "@/lib/zod/schemas/links";
+import { PartnerSchema } from "@/lib/zod/schemas/partners";
import { WebhookEvent } from "dub/models/components";
import { describe, expect, test } from "vitest";
@@ -39,6 +40,7 @@ const eventSchemas: Record<WebhookTrigger, z.ZodSchema> = {
"link.clicked": clickWebhookEventSchema,
"lead.created": leadWebhookEventSchemaExtended,
"sale.created": saleWebhookEventSchemaExtended,
+ "partner.created": PartnerSchema,
};
describe("Webhooks", () => {