Update NPC entity creation in test

This commit is contained in:
2026-04-15 09:32:11 +02:00
parent 74ed89f0f9
commit 8e2f38e2da

View File

@@ -346,11 +346,13 @@ describe("validateSceneDocument", () => {
});
it("rejects NPC default dialogues that point to missing NPC-authored dialogues", () => {
const npc = createNpcEntity({
id: "entity-npc-guide",
actorId: "actor-guide",
const npc = {
...createNpcEntity({
id: "entity-npc-guide",
actorId: "actor-guide"
}),
defaultDialogueId: "dialogue-missing"
});
};
const document = createEmptySceneDocument();
document.entities[npc.id] = npc;