From ac29a219156f911570e1178eaa9fa8b0b8c54fd5 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 14 Apr 2026 21:19:43 +0200 Subject: [PATCH] Update test to include trigger in dispatch check --- tests/domain/runtime-interaction-system.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/domain/runtime-interaction-system.test.ts b/tests/domain/runtime-interaction-system.test.ts index 7cebbd53..79729734 100644 --- a/tests/domain/runtime-interaction-system.test.ts +++ b/tests/domain/runtime-interaction-system.test.ts @@ -798,13 +798,15 @@ describe("RuntimeInteractionSystem", () => { createDispatcher({ startDialogue: (dialogueId, source) => { 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", () => {