more endpoints

This commit is contained in:
Devin Zuczek
2026-07-05 19:23:06 -04:00
parent 8f61adff1b
commit 7cf380a401
14 changed files with 179 additions and 33 deletions
+2 -2
View File
@@ -212,10 +212,10 @@ describe('auth worker routes', () => {
expect(await rotate.json()).toEqual({ success: true })
})
test('GET /role/developer/:id returns ok', async () => {
test('GET /role/developer/:id does not grant developer', async () => {
const res = await exports.default.fetch(`${ORIGIN}/role/developer/42`)
expect(res.status).toBe(200)
expect(await res.json()).toEqual({ success: true })
expect(await res.json()).toEqual({ success: false })
})
test('unknown path returns 404', async () => {