Skip to content

Commit

Permalink
Update dummy.registry.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Sep 19, 2023
1 parent 88cbf23 commit 108c5f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cli/install/dummy.registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function dummyRegistry(urls: string[], info: any = { "0.0.2": {} }) {
);
expect(request.headers.get("npm-auth-type")).toBe(null);
expect(await request.text()).toBe("");
const name = request.url.slice(request.url.indexOf("/", root_url.length) + 1);
const name = request.url.slice(request.url.replaceAll("%2f", "/").indexOf("/", root_url.length) + 1);
const versions: Record<string, Pkg> = {};
let version;
for (version in info) {
Expand Down

0 comments on commit 108c5f8

Please sign in to comment.