commit 51bfc500c6726ac3b2ece5a343e7893015179d9f
parent 78fdd1a71a5a95d1f726298f49420feac2f1047d
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Sat, 14 Nov 2026 08:30:26 -0500
videoOps test: the look-settings sentence is built from LOOK_KEYS, not a copied list
The clip kit added look keys (desktop, promo, zooms, censor) and the literal list in the
expected refusal went stale. It is now the product's own list (look.mjs LOOK_KEYS).
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/common/lib/report/draft/videoOps.test.ts b/common/lib/report/draft/videoOps.test.ts
@@ -6,6 +6,7 @@ import assert from "node:assert/strict";
import { readFile } from "node:fs/promises";
import path from "node:path";
import { fileURLToPath } from "node:url";
+import { LOOK_KEYS } from "../look.mjs";
import { applyVideoOps, chaptersNamedBy, chaptersOf, cutView, trimmedCutView, TRIM_SLACK_SECONDS, type VideoManifest } from "./videoOps";
const DRAFT = path.join(path.dirname(fileURLToPath(import.meta.url)), "../../../testing/draft");
@@ -169,7 +170,8 @@ test("the look ops (release 38): look, slide and room through the look's own rul
assert.match(r.applied[1]!.warnings![0]!, /the slide's knobs show once the join style is blur slide/);
assert.deepEqual(
r.refused.map((x) => x.why),
- ["render.transition must be a number of seconds from 0 (a hard cut) to 3", '"chrome" is not a look setting (headerHeight, footerHeight, qr, transition, transitionStyle, loudness, captions, room, slide, blur, intro, format, vertical, mode, basic, tallWindows)'],
+ // The list is the product's own (look.mjs LOOK_KEYS), never a copy that rots when a look key is added.
+ ["render.transition must be a number of seconds from 0 (a hard cut) to 3", `"chrome" is not a look setting (${LOOK_KEYS.join(", ")})`],
);
assert.equal((manifest.render as { transition: number }).transition, 0.4, "the input is not touched");
});