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 stale tests

Rafia848b8d490a0
diff --git a/apps/web/tests/partners/get-partners-route-query.test.ts b/apps/web/tests/partners/get-partners-route-query.test.ts
index 976892afee..d503b859ba 100644
--- a/apps/web/tests/partners/get-partners-route-query.test.ts
+++ b/apps/web/tests/partners/get-partners-route-query.test.ts
@@ -17,7 +17,14 @@ describe("getPartnersRouteQuerySchema", () => {
});
it("still accepts the legacy sort aliases", () => {
- for (const sortBy of ["clicks", "leads", "conversions", "saleAmount"]) {
+ for (const sortBy of [
+ "clicks",
+ "leads",
+ "conversions",
+ "sales",
+ "saleAmount",
+ "totalSales",
+ ]) {
expect(accepts({ sortBy })).toBe(true);
}
});
diff --git a/apps/web/tests/partners/upstash-redis-partner-search-provider.test.ts b/apps/web/tests/partners/upstash-redis-partner-search-provider.test.ts
index 33b3c7c318..c4248db554 100644
--- a/apps/web/tests/partners/upstash-redis-partner-search-provider.test.ts
+++ b/apps/web/tests/partners/upstash-redis-partner-search-provider.test.ts
@@ -285,7 +285,6 @@ describe("Upstash Redis partner search provider", () => {
const documents = Array.from({ length: 101 }, (_, index) => ({
...document,
id: `pge_${index}`,
- partnerTagIds: [],
}));
await provider.upsert(documents);