Skip to content

Commit 94141f4

Browse files
authored
chore(test): remove fetch-mock from request-common-test.ts (#708)
1 parent af8ef43 commit 94141f4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Diff for: test/request-common.test.ts

-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { describe, it, expect } from "vitest";
2-
import fetchMock from "fetch-mock";
32

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

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

100-
const mock = fetchMock.sandbox().get("https://127.0.0.1:8/", {
101-
throws: Object.assign(new TypeError("fetch failed"), { cause: "bad" }),
102-
});
103-
10499
try {
105100
// port: 8 // officially unassigned port. See https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
106101
await request("GET https://127.0.0.1:8/", {

0 commit comments

Comments
 (0)