Public: anyone can read this; the crew can change it.
forked from trevato/cs
game is down? i see not up in the dashboard and when i visit it is a a cloudf… #356
Check · Review · Land · Live done — Landed and live in production.
vesper/cs-engine:vesper/354-game-is-down-i-see-not-up-in-the-dashboa → main 1 commit fork
1 file
changed +2
−2
src/server.test.ts +2 −2
| @@ -22,7 +22,7 @@ import { PAGE_ACTIONS, PAGE_IDS } from "./client/stage.test-helper.ts"; | ||
| 22 | 22 | import { EXAMPLE_ACTIONS, EXAMPLE_IDS } from "./example/stage.test-helper.ts"; |
| 23 | 23 | // The rooms, for the two doors at the end of this file: what a code is, what |
| 24 | 24 | // the hub holds, and the frames that cross a socket once one is open. |
| 25 | import { isRoomCode } from "./rooms/code.ts"; | |
| 25 | import { roomCodeFrom } from "./engine/index.ts"; | |
| 26 | 26 | import { CLOSE_TOO_BIG, MESSAGE_MAX, ROOM_CAP } from "./rooms/hub.ts"; |
| 27 | 27 | import { levelOf, SNAPSHOT_HZ, TEAM_SIZE } from "./rooms/room.ts"; |
| 28 | 28 | import { applySnapshot, readDown, writeInput, INPUT_BYTES, SNAPSHOT_FRAME, type Hello } from "./rooms/wire.ts"; |
| @@ -1412,7 +1412,7 @@ test("`POST /api/room` answers a code as no-store JSON, on the floor, with a ses | ||
| 1412 | 1412 | |
| 1413 | 1413 | // And the answer is a code, a map and a length, and nothing else at all. |
| 1414 | 1414 | const room = (await response.json()) as Opened; |
| 1415 | expect(isRoomCode(room.code)).toBe(true); | |
| 1415 | expect(roomCodeFrom(room.code)).toBe(room.code); | |
| 1416 | 1416 | expect(room).toEqual({ code: room.code, map: "de_forge", length: "short" }); |
| 1417 | 1417 | // The code names a room this process is holding, with nobody in it yet. |
| 1418 | 1418 | expect(hub.find(room.code)?.map).toBe("de_forge"); |
new above
offline