style: fix deno fmt and lint
Check Deno code / Check Deno code (pull_request) Successful in 5s
Tests / Unit tests (pull_request) Successful in 12s
Tests / Integration tests (pull_request) Successful in 58s

This commit is contained in:
2026-04-26 14:18:55 +02:00
committed by djalim
parent 77993affd0
commit 0bbd3de265
3 changed files with 15 additions and 5 deletions
+6 -2
View File
@@ -58,7 +58,9 @@ Deno.test("mock API: GET /roles/:id returns role", async () => {
});
Deno.test("mock API: GET /roles/:id 404 when not found", async () => {
mockFetch({ "/roles/99": { status: 404, body: { error: "Ressource introuvable" } } });
mockFetch({
"/roles/99": { status: 404, body: { error: "Ressource introuvable" } },
});
try {
const res = await fetch("http://localhost/api/roles/99");
assertEquals(res.status, 404);
@@ -120,7 +122,9 @@ Deno.test("mock API: PUT /roles/:id updates role and permissions", async () => {
Deno.test("mock API: DELETE /roles/:id returns 204", async () => {
mockFetch({ "/roles/2": { method: "DELETE", status: 204 } });
try {
const res = await fetch("http://localhost/api/roles/2", { method: "DELETE" });
const res = await fetch("http://localhost/api/roles/2", {
method: "DELETE",
});
assertEquals(res.status, 204);
} finally {
restoreFetch();