mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-08 06:54:24 +00:00
fix(test): align feishu pairing assertion
This commit is contained in:
@@ -459,14 +459,17 @@ describe("handleFeishuMessage command authorization", () => {
|
||||
id: "ou-unapproved",
|
||||
meta: { name: undefined },
|
||||
});
|
||||
expect(mockBuildPairingReply).toHaveBeenCalledWith({
|
||||
channel: "feishu",
|
||||
idLine: "Your Feishu user id: ou-unapproved",
|
||||
code: "ABCDEFGH",
|
||||
});
|
||||
expect(mockSendMessageFeishu).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
to: "chat:oc-dm",
|
||||
text: expect.stringContaining("Your Feishu user id: ou-unapproved"),
|
||||
accountId: "default",
|
||||
}),
|
||||
);
|
||||
expect(mockSendMessageFeishu).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
to: "chat:oc-dm",
|
||||
text: expect.stringContaining("Pairing code: ABCDEFGH"),
|
||||
accountId: "default",
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user