diff --git a/lib/validations.test.ts b/lib/validations.test.ts index 1aa1b4e9..61e31833 100644 --- a/lib/validations.test.ts +++ b/lib/validations.test.ts @@ -696,6 +696,15 @@ describe('ogParamsSchema', () => { expect(result.data.theme).toBe('dark'); } }); + + it('falls back to dark theme when theme parameter is an empty string', () => { + const result = ogParamsSchema.safeParse({ theme: '' }); + + expect(result.success).toBe(true); + if (result.success) { + expect(result.data.theme).toBe('dark'); + } + }); }); describe('streakParamsSchema — view fallback behavior', () => {