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.

Refactor retrieve-metatags.test.ts

Kiran Kefd82fc1d263
diff --git a/apps/web/tests/metatags/retrieve-metatags.test.ts b/apps/web/tests/metatags/retrieve-metatags.test.ts
index ba7ec88da3..e82e7fdfb6 100644
--- a/apps/web/tests/metatags/retrieve-metatags.test.ts
+++ b/apps/web/tests/metatags/retrieve-metatags.test.ts
@@ -1,14 +1,10 @@
import { MetaTag } from "@/lib/types";
import { expect, test } from "vitest";
-import { HttpClient } from "../utils/http";
import { IntegrationHarness } from "../utils/integration";
test("GET /metatags", async (ctx) => {
const h = new IntegrationHarness(ctx);
-
- const http = new HttpClient({
- baseUrl: h.baseUrl,
- });
+ const { http } = await h.init();
const { status, data: metatags } = await http.get<MetaTag>({
path: `/metatags`,