From 37072be61412b5d9bf5ac3af9fb6d3a7719ee2bf Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 14 Apr 2026 23:20:59 +0200 Subject: [PATCH] Update project sequence steps tests to include stepClass for impulse and held steps --- tests/domain/project-sequence-steps.test.ts | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/tests/domain/project-sequence-steps.test.ts b/tests/domain/project-sequence-steps.test.ts index 15bdab1d..a3e2b5eb 100644 --- a/tests/domain/project-sequence-steps.test.ts +++ b/tests/domain/project-sequence-steps.test.ts @@ -17,7 +17,9 @@ import { } from "../../src/interactions/interaction-links"; import { createProjectScheduleRoutine } from "../../src/scheduler/project-scheduler"; import { + getInteractionLinkImpulseSteps, getInteractionLinkSequenceSteps, + getProjectScheduleRoutineHeldSteps, getProjectScheduleRoutineSequenceSteps } from "../../src/sequencer/project-sequence-steps"; @@ -47,6 +49,7 @@ describe("project sequence steps", () => { expect(getInteractionLinkSequenceSteps(playSoundLink)).toEqual([ { + stepClass: "impulse", type: "controlEffect", effect: createPlaySoundControlEffect({ target: createSoundEmitterControlTargetRef("entity-sound-main") @@ -55,18 +58,21 @@ describe("project sequence steps", () => { ]); expect(getInteractionLinkSequenceSteps(dialogueLink)).toEqual([ { + stepClass: "impulse", type: "startDialogue", dialogueId: "dialogue-main" } ]); expect(getInteractionLinkSequenceSteps(teleportLink)).toEqual([ { + stepClass: "impulse", type: "teleportPlayer", targetEntityId: "entity-teleport-target" } ]); expect(getInteractionLinkSequenceSteps(visibilityLink)).toEqual([ { + stepClass: "impulse", type: "toggleVisibility", targetBrushId: "brush-main", visible: false @@ -109,8 +115,9 @@ describe("project sequence steps", () => { }) }); - expect(getProjectScheduleRoutineSequenceSteps(actorRoutine)).toEqual([ + expect(getProjectScheduleRoutineHeldSteps(actorRoutine)).toEqual([ { + stepClass: "held", type: "controlEffect", effect: createSetActorPresenceControlEffect({ target: actorTarget, @@ -118,6 +125,16 @@ describe("project sequence steps", () => { }) } ]); + expect(getInteractionLinkImpulseSteps(directControlLink)).toEqual([ + { + stepClass: "impulse", + type: "controlEffect", + effect: createSetLightEnabledControlEffect({ + target: lightTarget, + enabled: false + }) + } + ]); expect(getProjectScheduleRoutineSequenceSteps(lightRoutine)).toEqual( getInteractionLinkSequenceSteps(directControlLink) );