mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-16 18:34:18 +00:00
test: tighten qa inbound assertions
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user