The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
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.tsindex 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);