mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 16:04:23 +00:00
Refactor ThemeContext to ensure fallback to light scheme and update color scheme logic
This commit is contained in:
@@ -171,22 +171,6 @@ describe('useWorkspace', () => {
|
||||
mockTheme.updateColorScheme
|
||||
);
|
||||
});
|
||||
|
||||
it('handles light theme', () => {
|
||||
mockTheme.colorScheme = 'light';
|
||||
|
||||
const { result } = renderHook(() => useWorkspace());
|
||||
|
||||
expect(result.current.colorScheme).toBe('light');
|
||||
});
|
||||
|
||||
it('handles auto theme', () => {
|
||||
mockTheme.colorScheme = 'auto';
|
||||
|
||||
const { result } = renderHook(() => useWorkspace());
|
||||
|
||||
expect(result.current.colorScheme).toBe('auto');
|
||||
});
|
||||
});
|
||||
|
||||
describe('workspace operations integration', () => {
|
||||
|
||||
Reference in New Issue
Block a user