18 lines
627 B
TypeScript
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({});
|
|
});
|
|
});
|