Add project global control target and effect tests

This commit is contained in:
2026-04-14 22:25:40 +02:00
parent bb02f227d8
commit c113a8463e

View File

@@ -16,6 +16,7 @@ import {
import {
createActorControlTargetRef,
createLightControlTargetRef,
createProjectGlobalControlTargetRef,
createSetActorPresenceControlEffect,
createSetLightEnabledControlEffect
} from "../../src/controls/control-surface";
@@ -125,6 +126,13 @@ describe("runtime control foundation", () => {
expect(runtimeScene.control.targets).toEqual(
expect.arrayContaining([
expect.objectContaining({
target: {
kind: "global",
scope: "project"
},
capabilities: ["projectTimePause"]
}),
expect.objectContaining({
target: {
kind: "scene",
@@ -216,6 +224,11 @@ describe("runtime control foundation", () => {
);
expect(runtimeScene.control.resolved.discrete).toEqual(
expect.arrayContaining([
expect.objectContaining({
type: "projectTimePaused",
target: createProjectGlobalControlTargetRef(),
value: false
}),
expect.objectContaining({
type: "ambientLightColor",
target: {