Add project global control target and effect tests
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user