Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

remove error

Andras Bacsai13e2e6bf5657
diff --git a/packages/http-client/src/index.test.ts b/packages/http-client/src/index.test.ts
index 22c0db4c24..012e32beb9 100644
--- a/packages/http-client/src/index.test.ts
+++ b/packages/http-client/src/index.test.ts
@@ -12,9 +12,6 @@ describe("getProjectDetails", () => {
apiUrl,
projectId: morePagesProjectId,
});
- if (response instanceof Error) {
- throw response;
- }
if (typeof response === "object") {
return expect(response.length > 1).toBeTruthy();
}
@@ -25,9 +22,6 @@ describe("getProjectDetails", () => {
apiUrl,
projectId: onlyHomeProjectId,
});
- if (response instanceof Error) {
- throw response;
- }
if (typeof response === "object") {
return expect(response.length === 1).toBeTruthy();
}