From a21815c7de2e88502341c9378c08d0144ae22a2c Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 23 Apr 2026 08:58:37 +0200 Subject: [PATCH] auto-git: [change] tests/domain/runtime-interaction-system.test.ts --- tests/domain/runtime-interaction-system.test.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/domain/runtime-interaction-system.test.ts b/tests/domain/runtime-interaction-system.test.ts index 288ad447..abf270ee 100644 --- a/tests/domain/runtime-interaction-system.test.ts +++ b/tests/domain/runtime-interaction-system.test.ts @@ -385,6 +385,10 @@ describe("RuntimeInteractionSystem", () => { runtimeScene, createDispatcher({ dispatchControlEffect: (effect, link) => { + if (effect.target.kind !== "entity") { + throw new Error("Expected a camera rig entity control target."); + } + dispatches.push(`${link.id}:${effect.type}:${effect.target.entityId}`); } }) @@ -399,6 +403,10 @@ describe("RuntimeInteractionSystem", () => { runtimeScene, createDispatcher({ dispatchControlEffect: (effect, link) => { + if (effect.target.kind !== "entity") { + throw new Error("Expected a camera rig entity control target."); + } + dispatches.push(`${link.id}:${effect.type}:${effect.target.entityId}`); } }) @@ -430,6 +438,10 @@ describe("RuntimeInteractionSystem", () => { runtimeScene, createDispatcher({ dispatchControlEffect: (effect, link) => { + if (effect.target.kind !== "entity") { + throw new Error("Expected a camera rig entity control target."); + } + dispatches.push(`${link.id}:${effect.type}:${effect.target.entityId}`); } })