mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-05-19 06:19:31 +08:00
22 lines
857 B
TypeScript
22 lines
857 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
|
|
import { buildOverlayWorkbenchTheme } from './overlayWorkbenchTheme';
|
|
|
|
describe('buildOverlayWorkbenchTheme', () => {
|
|
it('builds dark theme tokens', () => {
|
|
const darkTheme = buildOverlayWorkbenchTheme(true);
|
|
expect(darkTheme.isDark).toBe(true);
|
|
expect(darkTheme.shellBg).toMatch(/rgba\(15, 15, 17,/);
|
|
expect(darkTheme.sectionBg).toMatch(/rgba\(255,?\s*255,?\s*255,?\s*0\.03\)/);
|
|
expect(darkTheme.iconColor).toBe('#ffd666');
|
|
});
|
|
|
|
it('builds light theme tokens', () => {
|
|
const lightTheme = buildOverlayWorkbenchTheme(false);
|
|
expect(lightTheme.isDark).toBe(false);
|
|
expect(lightTheme.shellBg).toMatch(/rgba\(255,255,255,0\.98\)/);
|
|
expect(lightTheme.sectionBg).toMatch(/rgba\(255,?\s*255,?\s*255,?\s*0\.84\)/);
|
|
expect(lightTheme.iconColor).toBe('#1677ff');
|
|
});
|
|
});
|