Files
bun.sh/test/regression/issue/04947.test.js
Ashcon Partovi c837903e4e Fix new Request("/") not working with node-fetch (#9246)
* Fix `new Request("/")` not working with `node-fetch`

* Address review

* Address review 2

* Fix bad test
2024-03-05 16:51:52 -08:00

8 lines
229 B
JavaScript

import { test, expect } from "bun:test";
import { Request } from "node-fetch";
test("new Request('/') works with node-fetch", () => {
expect(() => new Request("/")).not.toThrow();
expect(new Request("/").url).toBe("/");
});