Skip to content

Commit

Permalink
test: removed redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
picunada committed Aug 21, 2023
1 parent 5ec2d80 commit ab9fb9a
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"), {
Expand Down

0 comments on commit ab9fb9a

Please sign in to comment.