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
Collaborator

Summary

  • Unit tests: mock API response shape and content (9 permissions, id + nom fields)
  • E2E tests: Fresh handler direct calls (static handler, no DB required)

Test plan

  • deno task test:unit passes
  • deno task test:e2e passes

Closes #115

## Summary - Unit tests: mock API response shape and content (9 permissions, id + nom fields) - E2E tests: Fresh handler direct calls (static handler, no DB required) ## Test plan - [ ] `deno task test:unit` passes - [ ] `deno task test:e2e` passes Closes #115
djalim force-pushed PMPR-115 from 2d1b8b65b9 to 204cce4227 2026-04-26 13:02:39 +00:00 Compare
djalim force-pushed PMPR-115 from 204cce4227 to 0bf3f3870c 2026-04-26 13:05:19 +00:00 Compare
djalim force-pushed PMPR-115 from 0bf3f3870c to 204cce4227 2026-04-26 13:07:08 +00:00 Compare
djalim force-pushed PMPR-115 from 204cce4227 to f672d6467b 2026-04-26 13:08:37 +00:00 Compare
djalim added 2 commits 2026-04-26 13:34:45 +00:00
Handler is static (no DB), tests verify the 9 known permissions are returned
with correct id/nom shapes.
fix: remove unused body variable in permissions e2e test
Check Deno code / Check Deno code (pull_request) Successful in 6s
Tests / Unit tests (pull_request) Successful in 11s
Tests / Integration tests (pull_request) Successful in 1m19s
Check Deno code / Check Deno code (push) Successful in 6s
Tests / Unit tests (push) Successful in 11s
Tests / Integration tests (push) Successful in 1m7s
a3b55d0a1b
djalim force-pushed PMPR-115 from f672d6467b to a3b55d0a1b 2026-04-26 13:34:45 +00:00 Compare
djalim merged commit a3b55d0a1b into develop 2026-04-26 13:34:51 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/PolyMPR#144