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.

test with performanceScope: "new"

Steven Teyb1a50cb0c516
diff --git a/apps/web/tests/bounties/index.test.ts b/apps/web/tests/bounties/index.test.ts
index 8016d3ea2d..e4ce34cfbd 100644
--- a/apps/web/tests/bounties/index.test.ts
+++ b/apps/web/tests/bounties/index.test.ts
@@ -6,24 +6,24 @@ import { IntegrationHarness } from "../utils/integration";
// start 5 mins from now to make sure the bounty is fully deleted so it doesn't trigger email sends
const startsAt = new Date(Date.now() + 5 * 60 * 1000).toISOString();
-const submissionBounty = {
- name: "Submission Bounty",
+const performanceBounty = {
+ name: "Earn $10 after generating 100 leads",
description: "some description about the bounty",
- type: "submission",
+ type: "performance",
startsAt,
endsAt: null,
rewardAmount: 1000,
- submissionRequirements: ["image", "url"],
+ performanceScope: "new",
};
-const performanceBounty = {
- name: "Earn $10 after generating 100 leads",
+const submissionBounty = {
+ name: "Submission Bounty",
description: "some description about the bounty",
- type: "performance",
+ type: "submission",
startsAt,
endsAt: null,
rewardAmount: 1000,
- performanceScope: "lifetime",
+ submissionRequirements: ["image", "url"],
};
describe.sequential("/bounties/**", async () => {