Handle source links going offline during downloads

This commit is contained in:
Sucukdeluxe
2026-09-02 11:32:06 +02:00
parent cd0464d658
commit ad75469854
15 changed files with 573 additions and 84 deletions
+8
View File
@@ -13,6 +13,14 @@ describe("renderer settings validation", () => {
.toEqual({ createWorkDirectoriesOnStartup: false });
});
it("projects and validates both offline skip scopes", () => {
const current = { ...defaultSettings(), offlineSkipScope: "archive" as const };
expect(createRendererSettings(current).offlineSkipScope).toBe("archive");
expect(validateRendererSettingsUpdate({ offlineSkipScope: "package" }, current)).toEqual({ offlineSkipScope: "package" });
expect(() => validateRendererSettingsUpdate({ offlineSkipScope: "item" }, current)).toThrow("Settings-Payload ist ungültig");
});
it("projects and validates the semantic theme preference independently from the resolved palette", () => {
const current = { ...defaultSettings(), theme: "dark" as const, themePreference: "system" as const };
const projected = createRendererSettings(current);