Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lib/validations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
Loading