at least we are in the dorm now

This commit is contained in:
Devin Zuczek
2026-06-14 21:32:37 -04:00
parent 768ca2a0a3
commit 2f70eab186
14 changed files with 310 additions and 28 deletions
+7
View File
@@ -61,4 +61,11 @@ const app = new Hono<App>()
// deserializes this into an object, so it must return `{}` (not `[]`).
.get('/subscription/details/:subscription', (c) => c.json({}))
// The player's clubs that have unread announcements (MyClubsWithUnread-
// Announcements). No DB → empty list.
.get('/announcements/v2/mine/unread', (c) => c.json([]))
// The clubs the player is a member of (GetMyMembershipClubs). No DB → empty.
.get('/club/mine/member', (c) => c.json([]))
export default app
@@ -56,6 +56,18 @@ describe('clubs endpoints', () => {
expect(await res.json()).toEqual({})
})
test('GET /announcements/v2/mine/unread returns []', async () => {
const res = await exports.default.fetch(`${ORIGIN}/announcements/v2/mine/unread`)
expect(res.status).toBe(200)
expect(await res.json()).toEqual([])
})
test('GET /club/mine/member returns []', async () => {
const res = await exports.default.fetch(`${ORIGIN}/club/mine/member`)
expect(res.status).toBe(200)
expect(await res.json()).toEqual([])
})
test('unknown routes 404', async () => {
const res = await exports.default.fetch(`${ORIGIN}/nope`)
expect(res.status).toBe(404)