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";
|
} from "../../src/interactions/interaction-links";
|
||||||
import { createProjectScheduleRoutine } from "../../src/scheduler/project-scheduler";
|
import { createProjectScheduleRoutine } from "../../src/scheduler/project-scheduler";
|
||||||
import {
|
import {
|
||||||
|
getInteractionLinkImpulseSteps,
|
||||||
getInteractionLinkSequenceSteps,
|
getInteractionLinkSequenceSteps,
|
||||||
|
getProjectScheduleRoutineHeldSteps,
|
||||||
getProjectScheduleRoutineSequenceSteps
|
getProjectScheduleRoutineSequenceSteps
|
||||||
} from "../../src/sequencer/project-sequence-steps";
|
} from "../../src/sequencer/project-sequence-steps";
|
||||||
|
|
||||||
@@ -47,6 +49,7 @@ describe("project sequence steps", () => {
|
|||||||
|
|
||||||
expect(getInteractionLinkSequenceSteps(playSoundLink)).toEqual([
|
expect(getInteractionLinkSequenceSteps(playSoundLink)).toEqual([
|
||||||
{
|
{
|
||||||
|
stepClass: "impulse",
|
||||||
type: "controlEffect",
|
type: "controlEffect",
|
||||||
effect: createPlaySoundControlEffect({
|
effect: createPlaySoundControlEffect({
|
||||||
target: createSoundEmitterControlTargetRef("entity-sound-main")
|
target: createSoundEmitterControlTargetRef("entity-sound-main")
|
||||||
@@ -55,18 +58,21 @@ describe("project sequence steps", () => {
|
|||||||
]);
|
]);
|
||||||
expect(getInteractionLinkSequenceSteps(dialogueLink)).toEqual([
|
expect(getInteractionLinkSequenceSteps(dialogueLink)).toEqual([
|
||||||
{
|
{
|
||||||
|
stepClass: "impulse",
|
||||||
type: "startDialogue",
|
type: "startDialogue",
|
||||||
dialogueId: "dialogue-main"
|
dialogueId: "dialogue-main"
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
expect(getInteractionLinkSequenceSteps(teleportLink)).toEqual([
|
expect(getInteractionLinkSequenceSteps(teleportLink)).toEqual([
|
||||||
{
|
{
|
||||||
|
stepClass: "impulse",
|
||||||
type: "teleportPlayer",
|
type: "teleportPlayer",
|
||||||
targetEntityId: "entity-teleport-target"
|
targetEntityId: "entity-teleport-target"
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
expect(getInteractionLinkSequenceSteps(visibilityLink)).toEqual([
|
expect(getInteractionLinkSequenceSteps(visibilityLink)).toEqual([
|
||||||
{
|
{
|
||||||
|
stepClass: "impulse",
|
||||||
type: "toggleVisibility",
|
type: "toggleVisibility",
|
||||||
targetBrushId: "brush-main",
|
targetBrushId: "brush-main",
|
||||||
visible: false
|
visible: false
|
||||||
@@ -109,8 +115,9 @@ describe("project sequence steps", () => {
|
|||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(getProjectScheduleRoutineSequenceSteps(actorRoutine)).toEqual([
|
expect(getProjectScheduleRoutineHeldSteps(actorRoutine)).toEqual([
|
||||||
{
|
{
|
||||||
|
stepClass: "held",
|
||||||
type: "controlEffect",
|
type: "controlEffect",
|
||||||
effect: createSetActorPresenceControlEffect({
|
effect: createSetActorPresenceControlEffect({
|
||||||
target: actorTarget,
|
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(
|
expect(getProjectScheduleRoutineSequenceSteps(lightRoutine)).toEqual(
|
||||||
getInteractionLinkSequenceSteps(directControlLink)
|
getInteractionLinkSequenceSteps(directControlLink)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user