test: verify plugin warning messages

This commit is contained in:
Shakker
2026-05-11 16:40:05 +01:00
parent b0db82be15
commit 561c19cb58
3 changed files with 18 additions and 13 deletions

View File

@@ -909,7 +909,7 @@ describe("drive.notice.comment_add_v1 monitor handler", () => {
"default",
);
expect(lastRuntime?.error).toHaveBeenCalledWith(
expect.stringContaining("error handling drive comment notice: Error: post-send failure"),
"feishu[default]: error handling drive comment notice: Error: post-send failure",
);
});
const [recordedMessageId, recordedNamespace, recordedLogger] =
@@ -936,9 +936,7 @@ describe("drive.notice.comment_add_v1 monitor handler", () => {
"default",
);
expect(lastRuntime?.error).toHaveBeenCalledWith(
expect.stringContaining(
"error handling drive comment notice: FeishuRetryableSyntheticEventError: retry me",
),
"feishu[default]: error handling drive comment notice: FeishuRetryableSyntheticEventError: retry me",
);
});
});