Update NPC entity creation in test
This commit is contained in:
@@ -346,11 +346,13 @@ describe("validateSceneDocument", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("rejects NPC default dialogues that point to missing NPC-authored dialogues", () => {
|
it("rejects NPC default dialogues that point to missing NPC-authored dialogues", () => {
|
||||||
const npc = createNpcEntity({
|
const npc = {
|
||||||
id: "entity-npc-guide",
|
...createNpcEntity({
|
||||||
actorId: "actor-guide",
|
id: "entity-npc-guide",
|
||||||
|
actorId: "actor-guide"
|
||||||
|
}),
|
||||||
defaultDialogueId: "dialogue-missing"
|
defaultDialogueId: "dialogue-missing"
|
||||||
});
|
};
|
||||||
const document = createEmptySceneDocument();
|
const document = createEmptySceneDocument();
|
||||||
document.entities[npc.id] = npc;
|
document.entities[npc.id] = npc;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user