refactor(runtime): trim color grading helpers

This commit is contained in:
ukimsanov
2026-06-16 13:41:32 -07:00
parent 1ad158d2f0
commit 48fb42e5f0
5 changed files with 24 additions and 63 deletions
+2 -8
View File
@@ -119,10 +119,7 @@ describe("installRuntimeControlBridge", () => {
const grading = { preset: "warm-clean", intensity: 0.7 };
const target = { id: "hero-video", selectorIndex: 0 };
handler(makeControlMessage("set-color-grading", { target, grading }));
expect(deps.onSetColorGrading).toHaveBeenCalledWith(
{ id: "hero-video", hfId: null, selector: null, selectorIndex: 0 },
grading,
);
expect(deps.onSetColorGrading).toHaveBeenCalledWith(target, grading);
});
it("dispatches set-color-grading-compare command with target and compare payload", () => {
@@ -131,10 +128,7 @@ describe("installRuntimeControlBridge", () => {
const compare = { enabled: true, position: 0.42 };
const target = { id: "hero-video", selectorIndex: 0 };
handler(makeControlMessage("set-color-grading-compare", { target, compare }));
expect(deps.onSetColorGradingCompare).toHaveBeenCalledWith(
{ id: "hero-video", hfId: null, selector: null, selectorIndex: 0 },
compare,
);
expect(deps.onSetColorGradingCompare).toHaveBeenCalledWith(target, compare);
});
it("dispatches tick command", () => {