test(permissions): unit & e2e tests for GET /permissions #144

Merged
djalim merged 2 commits from PMPR-115 into develop 2026-04-26 13:34:51 +00:00
Showing only changes of commit a3b55d0a1b - Show all commits
-2
View File
@@ -13,8 +13,6 @@ Deno.test({
makeEmployeeContext(),
);
assertEquals(res.status, 200);
const body = JSON.parse(res.body ? "" : "[]");
// handler returns synchronously — parse via text
return res.text().then((text) => {
const data = JSON.parse(text);
assertEquals(data.length, 9);