diff options
author | 2022-07-11 06:02:48 -0700 | |
---|---|---|
committer | 2022-07-11 08:04:55 -0700 | |
commit | f6cd941522ddf70a0b374fd030375bd2352cb3b9 (patch) | |
tree | 29922515037e646f3d0adcc4a6c88b69fe41d26f /test/bun.js/inspect.test.js | |
parent | a6c216db000ee2a68b238905a917430545cc594f (diff) | |
download | bun-f6cd941522ddf70a0b374fd030375bd2352cb3b9.tar.gz bun-f6cd941522ddf70a0b374fd030375bd2352cb3b9.tar.zst bun-f6cd941522ddf70a0b374fd030375bd2352cb3b9.zip |
Fixes https://github.com/oven-sh/bun/issues/195
Diffstat (limited to 'test/bun.js/inspect.test.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 |