Files
makelore/tests/unit/window-material.test.ts
inman f4113a872f
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled
收口 Makelore 客户端变更
2026-08-12 22:43:09 +08:00

18 lines
627 B
TypeScript

import { describe, expect, it } from 'vitest';
import { getNativeWindowMaterialOptions } from '../../electron/main/window-material';
describe('native window material', () => {
it('enables transparent under-window vibrancy on macOS', () => {
expect(getNativeWindowMaterialOptions('darwin')).toEqual({
backgroundColor: '#00000000',
transparent: true,
vibrancy: 'under-window',
visualEffectState: 'active',
});
});
it.each(['win32', 'linux', 'freebsd'] as const)('keeps %s on the opaque fallback', (platform) => {
expect(getNativeWindowMaterialOptions(platform)).toEqual({});
});
});