diff options
Diffstat (limited to 'test/bun.js')
-rw-r--r-- | test/bun.js/inspect.test.js | 10 |
1 files changed, 10 insertions, 0 deletions
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 |