test: tighten qa inbound assertions

This commit is contained in:
Shakker
2026-05-11 08:54:43 +01:00
parent 3870850d91
commit 02ddac4f76

View File

@@ -114,12 +114,9 @@ describe("handleQaInbound", () => {
);
expect(runtime.channel.turn.runAssembled).toHaveBeenCalledTimes(1);
expect(
vi.mocked(runtime.channel.turn.runAssembled).mock.calls[0]?.[0].ctxPayload,
).toMatchObject({
CommandAuthorized: true,
SenderId: "alice",
});
const ctxPayload = vi.mocked(runtime.channel.turn.runAssembled).mock.calls[0]?.[0].ctxPayload;
expect(ctxPayload?.CommandAuthorized).toBe(true);
expect(ctxPayload?.SenderId).toBe("alice");
});
it("uses allowFrom as the group sender fallback for allowlist policy", async () => {