mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-26 09:45:11 +00:00
test: assert msteams attachment warning
This commit is contained in:
@@ -660,13 +660,14 @@ describe("msteams attachments", () => {
|
||||
);
|
||||
|
||||
expectAttachmentMediaLength(media, 0);
|
||||
expect(logger.warn).toHaveBeenCalledWith(
|
||||
expect(logger.warn).toHaveBeenCalledTimes(1);
|
||||
expect(logger.warn.mock.calls[0]).toStrictEqual([
|
||||
"msteams attachment download failed",
|
||||
expect.objectContaining({
|
||||
error: expect.stringContaining("HTTP 500"),
|
||||
host: expect.any(String),
|
||||
}),
|
||||
);
|
||||
{
|
||||
error: "HTTP 500",
|
||||
host: "x",
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
it("does not log when downloads succeed", async () => {
|
||||
|
||||
Reference in New Issue
Block a user