Files
Multi-Debrid-Downloader/tests/app-icon.test.ts
Sucukdeluxe a5758aa905 release: publish Multi-Debrid Downloader v2.0.14
Add live English and German localization, queue availability and metadata resolution, responsive package controls, polished navigation and drag interactions, clearer history and account states, and a rebuilt public README. Harden Windows packaging with verified icons and version metadata, archive inspection, and expanded release tests.
2026-08-10 19:42:49 +02:00

18 lines
623 B
TypeScript

import path from "node:path";
import { describe, expect, it } from "vitest";
import { resolveAppIconPath } from "../src/main/app-icon";
describe("application icon path", () => {
it("uses the unpacked resource copy in packaged builds", () => {
expect(resolveAppIconPath(true, "C:\\app\\resources\\app.asar", "C:\\app\\resources")).toBe(
path.join("C:\\app\\resources", "assets", "app_icon.ico")
);
});
it("uses the source asset in development", () => {
expect(resolveAppIconPath(false, "C:\\repo", "C:\\app\\resources")).toBe(
path.join("C:\\repo", "assets", "app_icon.ico")
);
});
});