mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 14:41:28 -07:00
make new account + orientation work
This commit is contained in:
@@ -66,12 +66,13 @@ describe('playersettings endpoints', () => {
|
||||
const settings = (await res.json()) as Array<{ PlayerId: number; Key: string; Value: string }>
|
||||
expect(settings.length).toBeGreaterThan(0)
|
||||
expect(settings.every((s) => s.PlayerId === 100)).toBe(true)
|
||||
expect(settings.find((s) => s.Key === 'Recroom.OOBE')?.Value).toBe('77')
|
||||
expect(settings.find((s) => s.Key === 'PlayerSessionCount')?.Value).toBe('13')
|
||||
// Fresh-player onboarding defaults so the new-user Orientation flow runs.
|
||||
expect(settings.find((s) => s.Key === 'Recroom.OOBE')?.Value).toBe('0')
|
||||
expect(settings.find((s) => s.Key === 'TUTORIAL_COMPLETE_MASK')?.Value).toBe('0')
|
||||
|
||||
// Defaults were persisted to KV.
|
||||
const stored = await env.PLAYER_SETTINGS.get<Record<string, string>>('player:100', 'json')
|
||||
expect(stored?.['Recroom.OOBE']).toBe('77')
|
||||
expect(stored?.['Recroom.OOBE']).toBe('0')
|
||||
})
|
||||
|
||||
it('GET /playersettings reflects a value written by PUT', async () => {
|
||||
|
||||
Reference in New Issue
Block a user