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.

Check that the boolean test responses have rows

Rafi331ea5fedad7
diff --git a/apps/web/playwright/api/partner-profile/programs.spec.ts b/apps/web/playwright/api/partner-profile/programs.spec.ts
index a736b18e42..f5e99b9bff 100644
--- a/apps/web/playwright/api/partner-profile/programs.spec.ts
+++ b/apps/web/playwright/api/partner-profile/programs.spec.ts
@@ -206,6 +206,8 @@ test.describe("GET /partner-profile/programs", () => {
);
// the discount is in the response only when the API includes it
+ expect(withRewards.length).toBeGreaterThan(0);
+ expect(withoutRewards.length).toBeGreaterThan(0);
expect(withRewards.every((e) => "discount" in e)).toBe(true);
expect(withoutRewards.some((e) => "discount" in e)).toBe(false);
expect(status).toEqual(422);