Remove unused dialogue interaction link test
This commit is contained in:
@@ -31,8 +31,7 @@ import {
|
||||
import { createProjectAssetStorageKey, type AudioAssetRecord, type ModelAssetRecord } from "../../src/assets/project-assets";
|
||||
import {
|
||||
createControlInteractionLink,
|
||||
createRunSequenceInteractionLink,
|
||||
createStartDialogueInteractionLink
|
||||
createRunSequenceInteractionLink
|
||||
} from "../../src/interactions/interaction-links";
|
||||
import { createProjectScheduleRoutine } from "../../src/scheduler/project-scheduler";
|
||||
import { createProjectSequence } from "../../src/sequencer/project-sequences";
|
||||
@@ -226,32 +225,6 @@ describe("validateSceneDocument", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("rejects interaction dialogue links that reference missing dialogue resources", () => {
|
||||
const interactable = createInteractableEntity({
|
||||
id: "entity-interactable-main"
|
||||
});
|
||||
const document = createEmptySceneDocument();
|
||||
document.entities[interactable.id] = interactable;
|
||||
document.interactionLinks["link-dialogue-missing"] =
|
||||
createStartDialogueInteractionLink({
|
||||
id: "link-dialogue-missing",
|
||||
sourceEntityId: interactable.id,
|
||||
trigger: "click",
|
||||
dialogueId: "dialogue-missing"
|
||||
});
|
||||
|
||||
const validation = validateSceneDocument(document);
|
||||
|
||||
expect(validation.errors).toEqual(
|
||||
expect.arrayContaining([
|
||||
expect.objectContaining({
|
||||
code: "missing-dialogue-resource",
|
||||
path: "interactionLinks.link-dialogue-missing.action.dialogueId"
|
||||
})
|
||||
])
|
||||
);
|
||||
});
|
||||
|
||||
it("rejects interaction run-sequence links that do not resolve impulse steps", () => {
|
||||
const interactable = createInteractableEntity({
|
||||
id: "entity-interactable-sequence"
|
||||
|
||||
Reference in New Issue
Block a user