Files
aryx/tests/main/appIcon.test.ts
T
David KayaandCopilot 50a8e5dfbe refactor: rename Kopaya to Eryx
Rename the product, runtime surfaces, sidecar projects, docs, tests, and packaging outputs from Kopaya to Eryx across the repository.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-23 22:01:23 +01:00

33 lines
1.0 KiB
TypeScript

import { describe, expect, test } from 'bun:test';
import { resolveWindowIconPath } from '@main/windows/appIcon';
describe('resolveWindowIconPath', () => {
test('uses the Windows ico asset from the platform-specific icon directory', () => {
expect(
resolveWindowIconPath({
appPath: 'C:\\workspace\\personal\\repositories\\eryx',
platform: 'win32',
}),
).toBe('C:\\workspace\\personal\\repositories\\eryx\\assets\\icons\\windows\\icon.ico');
});
test('uses the macOS icns asset on Darwin', () => {
expect(
resolveWindowIconPath({
appPath: '/Applications/Eryx.app/Contents/Resources/app',
platform: 'darwin',
}),
).toBe('/Applications/Eryx.app/Contents/Resources/app/assets/icons/macos/icon.icns');
});
test('uses the Linux 512px PNG asset on Linux', () => {
expect(
resolveWindowIconPath({
appPath: '/opt/eryx/resources/app',
platform: 'linux',
}),
).toBe('/opt/eryx/resources/app/assets/icons/linux/icons/512x512.png');
});
});