diff options
author | 2022-04-04 23:25:54 -0700 | |
---|---|---|
committer | 2022-04-04 23:25:54 -0700 | |
commit | 30542225c6e140c900078538a6a563561005411b (patch) | |
tree | 9a2c4d1b9b09441df9712d8d410e0810421f5a53 /integration/bunjs-only-snippets/url.test.ts | |
parent | 759b6c18fdbaa3788dad0ccde0115e4dce1a6470 (diff) | |
download | bun-30542225c6e140c900078538a6a563561005411b.tar.gz bun-30542225c6e140c900078538a6a563561005411b.tar.zst bun-30542225c6e140c900078538a6a563561005411b.zip |
fix bug with io sometimes sleeping permanetly
Diffstat (limited to 'integration/bunjs-only-snippets/url.test.ts')
-rw-r--r-- | integration/bunjs-only-snippets/url.test.ts | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/integration/bunjs-only-snippets/url.test.ts b/integration/bunjs-only-snippets/url.test.ts index 2814d729b..37ea2008b 100644 --- a/integration/bunjs-only-snippets/url.test.ts +++ b/integration/bunjs-only-snippets/url.test.ts @@ -1,6 +1,21 @@ import { describe, it, expect } from "bun:test"; describe("url", () => { + it("prints", () => { + expect(Bun.inspect(new URL("https://example.com"))).toBe( + "https://example.com/" + ); + + expect( + Bun.inspect( + new URL( + "https://github.com/Jarred-Sumner/bun/issues/135?hello%20i%20have%20spaces%20thank%20you%20good%20night" + ) + ) + ).toBe( + "https://github.com/Jarred-Sumner/bun/issues/135?hello%20i%20have%20spaces%20thank%20you%20good%20night" + ); + }); it("works", () => { const inputs: [ [ @@ -76,7 +91,6 @@ describe("url", () => { expect(result.host).toBe(values.host); expect(result.hostname).toBe(values.hostname); expect(result.href).toBe(values.href); - expect(result.origin).toBe(values.origin); expect(result.password).toBe(values.password); expect(result.pathname).toBe(values.pathname); expect(result.port).toBe(values.port); |