diff --git a/test/index.test.ts b/test/index.test.ts index 7d7718d4..088323b9 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -260,22 +260,6 @@ describe("ofetch", () => { expect(error.options.method).to.equal("GET"); }); - it("passing url string should return FetchOptions obj in error", async () => { - const error = await $fetch( - new Request(getURL("404"), { - method: "GET", - }) - ).catch((error_) => error_); - expect(error.toString()).to.contain("Cannot find any path matching /404."); - expect(error.data).to.deep.eq({ - stack: [], - statusCode: 404, - statusMessage: "Cannot find any path matching /404.", - }); - expect(error.response?._data).to.deep.eq(error.data); - expect(error.request.url).to.equal(getURL("404")); - }); - it("passing request obj should return request obj in error", async () => { const error = await $fetch( new Request(getURL("404"), {