Skip to content

Commit

Permalink
chore(test): remove fetch-mock from request-common-test.ts (#708)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak authored Jul 11, 2024
1 parent af8ef43 commit 94141f4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions test/request-common.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { describe, it, expect } from "vitest";
import fetchMock from "fetch-mock";

import { request } from "../src/index.ts";

Expand Down Expand Up @@ -97,10 +96,6 @@ describe("request()", () => {
it("Request TypeError error with a string cause", async () => {
expect.assertions(2);

const mock = fetchMock.sandbox().get("https://127.0.0.1:8/", {
throws: Object.assign(new TypeError("fetch failed"), { cause: "bad" }),
});

try {
// port: 8 // officially unassigned port. See https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
await request("GET https://127.0.0.1:8/", {
Expand Down

0 comments on commit 94141f4

Please sign in to comment.