mirror of
https://github.com/Pandipipas/scoreko-electron-dev.git
synced 2026-06-06 05:32:06 +00:00
test: fix cross-platform assumptions in icon and process manager tests (#25)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import assert from "node:assert/strict";
|
||||
import path from "node:path";
|
||||
import test from "node:test";
|
||||
|
||||
import { AppRuntimeConfig } from "../main/config/runtime-config";
|
||||
@@ -31,10 +32,11 @@ test("resolveAppIconPath prioriza iconPathOverride cuando existe", () => {
|
||||
|
||||
test("resolveAppIconPath cae al primer icono por defecto existente", () => {
|
||||
const appConfig = getBaseConfig();
|
||||
const expectedIconPath = path.join("/app", "static", "icons", "icon.png");
|
||||
|
||||
const iconPath = resolveAppIconPath(appConfig, "/app", (candidate) => candidate === "/app/static/icons/icon.png");
|
||||
const iconPath = resolveAppIconPath(appConfig, "/app", (candidate) => candidate === expectedIconPath);
|
||||
|
||||
assert.equal(iconPath, "/app/static/icons/icon.png");
|
||||
assert.equal(iconPath, expectedIconPath);
|
||||
});
|
||||
|
||||
test("resolveAppIconPath devuelve undefined cuando no hay iconos", () => {
|
||||
|
||||
Reference in New Issue
Block a user