diff options
Diffstat (limited to 'test/cli/install/bun-install.test.ts')
-rw-r--r-- | test/cli/install/bun-install.test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/cli/install/bun-install.test.ts b/test/cli/install/bun-install.test.ts index c4accb1b4..25cd0aca7 100644 --- a/test/cli/install/bun-install.test.ts +++ b/test/cli/install/bun-install.test.ts @@ -39,7 +39,7 @@ it("should report connection errors", async () => { ` [install] cache = false -registry = "http://localhost:${server.port}/" +registry = "http://${server.hostname}:${server.port}/" `, ); await writeFile( @@ -62,7 +62,7 @@ registry = "http://localhost:${server.port}/" }); expect(stderr).toBeDefined(); const err = await new Response(stderr).text(); - expect(err.split(/\r?\n/)).toContain("error: ConnectionClosed downloading package manifest bar"); + expect(err.split(/\r?\n/)).toContain("error: ConnectionRefused downloading package manifest bar"); expect(stdout).toBeDefined(); expect(await new Response(stdout).text()).toBeEmpty(); expect(await exited).toBe(1); @@ -112,7 +112,7 @@ it("should handle missing package", async () => { it("should handle @scoped authentication", async () => { let seen_token = false; - const url = `${root_url}/@foo/bar`; + const url = `${root_url}/@foo%2fbar`; const urls: string[] = []; setHandler(async request => { expect(request.method).toBe("GET"); @@ -2197,7 +2197,7 @@ it("should handle unscoped alias on scoped dependency", async () => { " 1 packages installed", ]); expect(await exited).toBe(0); - expect(urls.sort()).toEqual([`${root_url}/@barn/moo`, `${root_url}/@barn/moo-0.1.0.tgz`]); + expect(urls.sort()).toEqual([`${root_url}/@barn%2fmoo`, `${root_url}/@barn/moo-0.1.0.tgz`]); expect(requested).toBe(2); expect(await readdirSorted(join(package_dir, "node_modules"))).toEqual([".cache", "@barn", "moo"]); expect(await readdirSorted(join(package_dir, "node_modules", "@barn"))).toEqual(["moo"]); @@ -2327,7 +2327,7 @@ it("should handle aliased dependency with existing lockfile", async () => { ]); expect(await exited1).toBe(0); expect(urls.sort()).toEqual([ - `${root_url}/@barn/moo`, + `${root_url}/@barn%2fmoo`, `${root_url}/@barn/moo-0.1.0.tgz`, `${root_url}/bar`, `${root_url}/bar-0.0.2.tgz`, |