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.

Expect the submitted lead fields in the partner group API tests

Rafia7e6e62e6143
diff --git a/apps/web/tests/partner-groups/index.test.ts b/apps/web/tests/partner-groups/index.test.ts
index 452af3ae8a..7b04673f3c 100644
--- a/apps/web/tests/partner-groups/index.test.ts
+++ b/apps/web/tests/partner-groups/index.test.ts
@@ -25,6 +25,7 @@ const expectedGroup: Partial<GroupProps> = {
holdingPeriodDays: expect.any(Number),
brandColor: null,
autoApprovePartnersEnabledAt: null,
+ submittedLeadsEnabledAt: null,
clickReward: null,
leadReward: null,
saleReward: null,
@@ -76,6 +77,7 @@ describe.sequential("/groups/**", async () => {
linkStructure: defaultGroup.linkStructure,
holdingPeriodDays: defaultGroup.holdingPeriodDays,
autoApprovePartnersEnabledAt: defaultGroup.autoApprovePartnersEnabledAt,
+ submittedLeadsEnabledAt: defaultGroup.submittedLeadsEnabledAt,
});
group = data;
@@ -92,6 +94,7 @@ describe.sequential("/groups/**", async () => {
bounties,
landerData,
landerPublishedAt,
+ referralFormData,
program,
...fetchedGroup
} = data;
@@ -283,6 +286,7 @@ describe.sequential("/groups/**", async () => {
brandColor: group.brandColor,
holdingPeriodDays: group.holdingPeriodDays,
autoApprovePartnersEnabledAt: group.autoApprovePartnersEnabledAt,
+ submittedLeadsEnabledAt: group.submittedLeadsEnabledAt,
totalPartners: 0,
totalClicks: 0,
totalLeads: 0,