Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af8ef43 commit 94141f4Copy full SHA for 94141f4
test/request-common.test.ts
@@ -1,5 +1,4 @@
1
import { describe, it, expect } from "vitest";
2
-import fetchMock from "fetch-mock";
3
4
import { request } from "../src/index.ts";
5
@@ -97,10 +96,6 @@ describe("request()", () => {
97
96
it("Request TypeError error with a string cause", async () => {
98
expect.assertions(2);
99
100
- const mock = fetchMock.sandbox().get("https://127.0.0.1:8/", {
101
- throws: Object.assign(new TypeError("fetch failed"), { cause: "bad" }),
102
- });
103
-
104
try {
105
// port: 8 // officially unassigned port. See https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
106
await request("GET https://127.0.0.1:8/", {
0 commit comments