From f6cd941522ddf70a0b374fd030375bd2352cb3b9 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Mon, 11 Jul 2022 06:02:48 -0700 Subject: Fixes https://github.com/oven-sh/bun/issues/195 --- test/bun.js/inspect.test.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/bun.js/inspect.test.js') diff --git a/test/bun.js/inspect.test.js b/test/bun.js/inspect.test.js index d58b8a6bc..aa38f5c2d 100644 --- a/test/bun.js/inspect.test.js +++ b/test/bun.js/inspect.test.js @@ -1,5 +1,15 @@ import { it, expect } from "bun:test"; +it("Request object", () => { + expect(Bun.inspect(new Request({ url: "https://example.com" })).trim()).toBe( + ` +Request (0 KB) { + method: "GET", + url: "https://example.com", +}`.trim() + ); +}); + // https://github.com/oven-sh/bun/issues/561 it("TypedArray prints", () => { // TODO: add tests for all variants of typed arrays -- cgit v1.2.3