[api] update progression stub

This commit is contained in:
Devin Zuczek
2026-09-30 10:52:43 -04:00
parent 08d06004ee
commit fec3fc5258
2 changed files with 12 additions and 13 deletions
+4 -4
View File
@@ -2066,12 +2066,12 @@ describe('public endpoints', () => {
expect(res.status).toBe(400)
})
test('GET /api/progressionEvents/active is a bare -1 (no auth)', async () => {
// -1 is the reference server's "no active event" value; the client reads it as "no event
// running" and skips the event UI. A 404 would stall its load instead.
test('GET /api/progressionEvents/active is a bare 0 (no auth)', async () => {
// 0 is the "no active event" value; the client reads it as "no event running" and
// skips the event UI. A 404 would stall its load instead.
const res = await exports.default.fetch(`${ORIGIN}/api/progressionEvents/active`)
expect(res.status).toBe(200)
expect(await res.json()).toBe(-1)
expect(await res.json()).toBe(0)
})
test('GET /api/rooms/v1/filters returns an object with filter arrays', async () => {