// yt-dlp is never started on an instagram.com URL (lane instagram): the pass // umtool's scripts hand every yt-dlp argv through throws, so no process starts. import { test } from "node:test"; import assert from "node:assert/strict"; import { jitterSleepArgs } from "yt-dlp-transcript-common/lib/jitter.mjs"; import { INSTAGRAM_YTDLP_REFUSAL } from "yt-dlp-transcript-common/lib/instagram/ytdlpRefusal.mjs"; test("the argv pass check-availability and build-video use refuses an instagram.com URL", () => { assert.throws(() => jitterSleepArgs(["--simulate", "--no-warnings", "https://www.instagram.com/reel/CabcDEF1234/"]), new Error(INSTAGRAM_YTDLP_REFUSAL)); assert.throws(() => jitterSleepArgs(["-f", "b", "--download-sections", "*10-20", "--", "https://instagram.com/p/CabcDEF1234/"]), /Instagram is read as a posts channel/); assert.deepEqual(jitterSleepArgs(["--simulate", "https://www.youtube.com/watch?v=aaaaaaaaaaa"], 0), ["--simulate", "https://www.youtube.com/watch?v=aaaaaaaaaaa"]); });