auto-git:
[change] tests/domain/project-schedule-control-options.test.ts
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
|||||||
import {
|
import {
|
||||||
createProjectScheduleEffectFromOption,
|
createProjectScheduleEffectFromOption,
|
||||||
getProjectScheduleEffectOptionId,
|
getProjectScheduleEffectOptionId,
|
||||||
|
listProjectInteractionControlEffectOptions,
|
||||||
listProjectScheduleEffectOptions,
|
listProjectScheduleEffectOptions,
|
||||||
type ProjectScheduleTargetOption
|
type ProjectScheduleTargetOption
|
||||||
} from "../../src/scheduler/project-schedule-control-options";
|
} from "../../src/scheduler/project-schedule-control-options";
|
||||||
@@ -60,6 +61,20 @@ describe("project schedule control options", () => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("filters out scheduler-only actor control effects for interaction authoring", () => {
|
||||||
|
expect(listProjectInteractionControlEffectOptions(actorTargetOption)).toEqual(
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
expect(
|
||||||
|
listProjectInteractionControlEffectOptions(cameraRigTargetOption)
|
||||||
|
).toEqual(
|
||||||
|
expect.arrayContaining([
|
||||||
|
expect.objectContaining({ id: "camera.activate" }),
|
||||||
|
expect.objectContaining({ id: "camera.clear" })
|
||||||
|
])
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
it("roundtrips actor animation and follow-path through option ids", () => {
|
it("roundtrips actor animation and follow-path through option ids", () => {
|
||||||
const animationEffect = createPlayActorAnimationControlEffect({
|
const animationEffect = createPlayActorAnimationControlEffect({
|
||||||
target: createActorControlTargetRef("guard"),
|
target: createActorControlTargetRef("guard"),
|
||||||
|
|||||||
Reference in New Issue
Block a user