Update test to include trigger in dispatch check
This commit is contained in:
@@ -798,13 +798,15 @@ describe("RuntimeInteractionSystem", () => {
|
|||||||
createDispatcher({
|
createDispatcher({
|
||||||
startDialogue: (dialogueId, source) => {
|
startDialogue: (dialogueId, source) => {
|
||||||
dispatches.push(
|
dispatches.push(
|
||||||
`${source?.kind}:${source?.sourceEntityId}:${dialogueId}`
|
`${source?.kind}:${source?.sourceEntityId}:${source?.trigger}:${dialogueId}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(dispatches).toEqual(["npc:entity-npc-merchant:dialogue-merchant"]);
|
expect(dispatches).toEqual([
|
||||||
|
"npc:entity-npc-merchant:click:dialogue-merchant"
|
||||||
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("shows a click prompt for enabled Scene Exits within range", () => {
|
it("shows a click prompt for enabled Scene Exits within range", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user