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.

Delete index.test.ts

Kiran Ka0a1f75dfd81
diff --git a/apps/web/tests/discounts/index.test.ts b/apps/web/tests/discounts/index.test.ts
deleted file mode 100644
index b197a93a6d..0000000000
--- a/apps/web/tests/discounts/index.test.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-import { CustomerEnriched } from "@/lib/types";
-import { E2E_CUSTOMER_WITH_DISCOUNT, E2E_DISCOUNT } from "tests/utils/resource";
-import { describe, expect, test } from "vitest";
-import { IntegrationHarness } from "../utils/integration";
-
-describe("Discounts", () => {
- test("/customers?email=", async () => {
- const h = new IntegrationHarness();
- const { http } = await h.init();
-
- const { status, data: customers } = await http.get<CustomerEnriched[]>({
- path: `/customers?email=${E2E_CUSTOMER_WITH_DISCOUNT.email}&includeExpandedFields=true`,
- });
-
- expect(status).toEqual(200);
- expect(customers[0].discount).toStrictEqual(E2E_DISCOUNT);
- });
-
- test("/customers?externalId=", async () => {
- const h = new IntegrationHarness();
- const { http } = await h.init();
-
- const { status, data: customers } = await http.get<CustomerEnriched[]>({
- path: `/customers?externalId=${E2E_CUSTOMER_WITH_DISCOUNT.externalId}&includeExpandedFields=true`,
- });
-
- expect(status).toEqual(200);
- expect(customers[0].discount).toStrictEqual(E2E_DISCOUNT);
- });
-
- test("/customers/:id", async () => {
- const h = new IntegrationHarness();
- const { http } = await h.init();
-
- const { status, data: customer } = await http.get<CustomerEnriched>({
- path: `/customers/${E2E_CUSTOMER_WITH_DISCOUNT.id}?includeExpandedFields=true`,
- });
-
- expect(status).toEqual(200);
- expect(customer.discount).toStrictEqual(E2E_DISCOUNT);
- });
-});