import { describe, it, expect } from "vitest"; import { nativeVideoWanted } from "./nativeVideo"; // TRACES: UR-003, UR-071 | DR-293 | UT-262 describe("nativeVideoWanted", () => { it("ignores a stored 'off' where there is no webview fallback (Android)", () => { // Someone who once switched native video off on Android must not be // routed to the webview, which plays original-file downloads silent. expect(nativeVideoWanted(false, false)).toBe(true); expect(nativeVideoWanted(true, false)).toBe(true); }); it("honours the stored choice where a fallback exists (Linux beside mpv)", () => { expect(nativeVideoWanted(false, true)).toBe(false); expect(nativeVideoWanted(true, true)).toBe(true); }); });