Add a manual Mega-Debrid cooldown reset that preserves active downloads while releasing affected queued work. Replace false per-account cooling for ambiguous Mega-Web session failures with one shared session backoff, attribute fallback failures to the provider actually attempted, and accept omitted optional renderer settings during provider changes. Expand regression coverage and stabilize archive integration checks under concurrent validation load.
21 lines
686 B
TypeScript
21 lines
686 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { defaultSettings } from "../src/main/constants";
|
|
import { validateRendererSettingsUpdate } from "../src/main/renderer-settings";
|
|
|
|
describe("renderer settings validation", () => {
|
|
it("ignores undefined optional fields from a stale renderer draft", () => {
|
|
const result = validateRendererSettingsUpdate({
|
|
columnOrderVersion: undefined,
|
|
megaDebridApiEnabled: false,
|
|
megaDebridWebEnabled: false,
|
|
debridLinkDisabledKeyIds: []
|
|
}, defaultSettings());
|
|
|
|
expect(result).toEqual({
|
|
megaDebridApiEnabled: false,
|
|
megaDebridWebEnabled: false,
|
|
debridLinkDisabledKeyIds: []
|
|
});
|
|
});
|
|
});
|