Update project sequence steps tests to include stepClass for impulse and held steps
This commit is contained in:
@@ -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)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user