auto-git:
[change] tests/domain/project-schedule-control-options.test.ts
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
import {
|
||||
createProjectScheduleEffectFromOption,
|
||||
getProjectScheduleEffectOptionId,
|
||||
listProjectInteractionControlEffectOptions,
|
||||
listProjectScheduleEffectOptions,
|
||||
type ProjectScheduleTargetOption
|
||||
} 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", () => {
|
||||
const animationEffect = createPlayActorAnimationControlEffect({
|
||||
target: createActorControlTargetRef("guard"),
|
||||
|
||||
Reference in New Issue
Block a user