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.

some cleanup

Kiran K3ac36c4aa661
diff --git a/apps/web/tests/analytics/leads.test.ts b/apps/web/tests/analytics/leads.test.ts
index 83bff410ea..326c460ed2 100644
--- a/apps/web/tests/analytics/leads.test.ts
+++ b/apps/web/tests/analytics/leads.test.ts
@@ -5,9 +5,7 @@ import { describe, expect, test } from "vitest";
import { IntegrationHarness } from "../utils/integration";
import { filter } from "./utils";
-const event = "leads";
-
-describe.sequential("GET /analytics/leads", async () => {
+describe.sequential("GET /analytics?event=leads", async () => {
const h = new IntegrationHarness();
const { workspace, http } = await h.init();
const { workspaceId } = workspace;
@@ -16,7 +14,7 @@ describe.sequential("GET /analytics/leads", async () => {
test(`by ${type}`, async () => {
const { status, data } = await http.get<any[]>({
path: `/analytics`,
- query: { event, type, workspaceId, ...filter },
+ query: { event: "leads", type, workspaceId, ...filter },
});
const responseSchema =
diff --git a/apps/web/tests/analytics/sales.test.ts b/apps/web/tests/analytics/sales.test.ts
index af6d96d3b7..9e4c06264c 100644
--- a/apps/web/tests/analytics/sales.test.ts
+++ b/apps/web/tests/analytics/sales.test.ts
@@ -5,9 +5,7 @@ import { describe, expect, test } from "vitest";
import { IntegrationHarness } from "../utils/integration";
import { filter } from "./utils";
-const event = "sales";
-
-describe.sequential("GET /analytics/sales", async () => {
+describe.sequential("GET /analytics?event=sales", async () => {
const h = new IntegrationHarness();
const { workspace, http } = await h.init();
const { workspaceId } = workspace;
@@ -16,7 +14,7 @@ describe.sequential("GET /analytics/sales", async () => {
test(`by ${type}`, async () => {
const { status, data } = await http.get<any[]>({
path: `/analytics`,
- query: { event, type, workspaceId, ...filter },
+ query: { event: "sales", type, workspaceId, ...filter },
});
const responseSchema =