test: tighten discord route assertions

This commit is contained in:
Shakker
2026-05-11 09:54:48 +01:00
parent 37bce8ad4d
commit 48d320b931

View File

@@ -110,9 +110,13 @@ describe("discord route resolution helpers", () => {
memberRoleIds: [],
peer: { kind: "channel", id: "c1" },
}),
).toMatchObject({
).toEqual({
agentId: "worker",
channel: "discord",
accountId: "default",
sessionKey: "agent:worker:discord:channel:c1",
mainSessionKey: "agent:worker:main",
lastRoutePolicy: "session",
matchedBy: "binding.peer",
});
});
@@ -131,9 +135,13 @@ describe("discord route resolution helpers", () => {
boundSessionKey: "agent:worker:discord:direct:user-1",
matchedBy: "binding.channel",
}),
).toMatchObject({
).toEqual({
agentId: "worker",
channel: "discord",
accountId: "default",
sessionKey: "agent:worker:discord:direct:user-1",
mainSessionKey: "agent:worker:main",
lastRoutePolicy: "session",
matchedBy: "binding.channel",
});
});