fix(services): encode URI in getProject and improve test assertions

This commit is contained in:
Lucas Winther
2026-09-06 00:23:58 +02:00
parent ca22a0e109
commit a57e8ba7df
2 changed files with 118 additions and 1 deletions
+3 -1
View File
@@ -54,7 +54,9 @@ export async function getProject(
client?: OpenProjectClient
): Promise<ProjectDetail> {
const opClient = resolveClient(client);
const response = await opClient.get<HalResource>(`projects/${idOrIdentifier}`);
const response = await opClient.get<HalResource>(
`projects/${encodeURIComponent(String(idOrIdentifier))}`
);
return normalizeProject(response);
}