Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Run npm run lint-fix to format the code
  • Loading branch information
mario-campos committed Apr 7, 2026
commit 43d8864b351ef0c7cbaeaed59d1d842831a32668
16 changes: 13 additions & 3 deletions src/start-proxy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,16 @@ test("getCredentials returns all goproxy_servers for a language when specified",

test("getCredentials returns all maven_repositories for a language when specified", async (t) => {
Comment thread
mario-campos marked this conversation as resolved.
Outdated
const multipleMavenRepositories = [
{ type: "maven_repository", host: "maven1.pkg.github.com", token: "token1" },
{ type: "maven_repository", host: "maven2.pkg.github.com", token: "token2" },
{
type: "maven_repository",
host: "maven1.pkg.github.com",
token: "token1",
},
{
type: "maven_repository",
host: "maven2.pkg.github.com",
token: "token2",
},
{ type: "git_source", host: "github.com/github", token: "mno" },
];

Expand All @@ -288,7 +296,9 @@ test("getCredentials returns all maven_repositories for a language when specifie
);
t.is(credentials.length, 2);

const mavenRepositories = credentials.filter((c) => c.type === "maven_repository");
const mavenRepositories = credentials.filter(
(c) => c.type === "maven_repository",
);
t.assert(mavenRepositories.some((c) => c.host === "maven1.pkg.github.com"));
t.assert(mavenRepositories.some((c) => c.host === "maven2.pkg.github.com"));
});
Expand Down