mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 19:38:58 +00:00
* Fix `new Request("/")` not working with `node-fetch`
* Address review
* Address review 2
* Fix bad test
8 lines
229 B
JavaScript
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("/");
|
|
});
|