diff --git a/packages/server/src/ws.ts b/packages/server/src/ws.ts index 9ef0dcb..3c1a167 100644 --- a/packages/server/src/ws.ts +++ b/packages/server/src/ws.ts @@ -147,6 +147,7 @@ async function onHello(ctx: SocketCtx, msg: Extract { human.send({ type: 'hello', gameId, token: creatorToken }); const joined = await human.waitFor((m) => m.type === 'joined'); expect(joined.type === 'joined' && joined.you).toBe('b'); + if (joined.type === 'joined') { + expect(joined.aiOpponent).toEqual({ color: 'w', brain: 'casual' }); + } // Bot's opening move should arrive as an update (bot moves first as white). const botMoved = await human.waitFor((m) =>