mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-22 01:37:50 +00:00
Use semantic colors in themes (#5796)
Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
@@ -44,15 +44,6 @@ describe('ThemeManager', () => {
|
||||
expect(themeManager.isCustomTheme('MyCustomTheme')).toBe(true);
|
||||
});
|
||||
|
||||
it('should not load invalid custom themes', () => {
|
||||
const invalidTheme = { ...validCustomTheme, Background: 'not-a-color' };
|
||||
themeManager.loadCustomThemes({
|
||||
InvalidTheme: invalidTheme as unknown as CustomTheme,
|
||||
});
|
||||
expect(themeManager.getCustomThemeNames()).not.toContain('InvalidTheme');
|
||||
expect(themeManager.isCustomTheme('InvalidTheme')).toBe(false);
|
||||
});
|
||||
|
||||
it('should set and get the active theme', () => {
|
||||
expect(themeManager.getActiveTheme().name).toBe(DEFAULT_THEME.name);
|
||||
themeManager.setActiveTheme('Ayu');
|
||||
|
||||
Reference in New Issue
Block a user