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 tests

Pedro Ladeira172ede7790e0
diff --git a/apps/web/tests/misc/ai-reward-schema.test.ts b/apps/web/tests/misc/ai-reward-schema.test.ts
index 7265876f62..87b9f55251 100644
--- a/apps/web/tests/misc/ai-reward-schema.test.ts
+++ b/apps/web/tests/misc/ai-reward-schema.test.ts
@@ -300,14 +300,12 @@ describe("getAIRewardGenerationSchema — unsupported refusal", () => {
});
it("rejects an unavailable customer source the event doesn't offer", () => {
- for (const event of ["sale", "click"] as const) {
- const result = getAIRewardGenerationSchema(event).safeParse({
- supported: false,
- unavailableSource: "hubspot",
- reward: null,
- });
- expect(result.success).toBe(false);
- }
+ const result = getAIRewardGenerationSchema("click").safeParse({
+ supported: false,
+ unavailableSource: "hubspot",
+ reward: null,
+ });
+ expect(result.success).toBe(false);
});
it("rejects an unknown unavailable customer source", () => {