mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 19:24:31 +00:00
chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
@@ -11,10 +11,9 @@ import {
|
||||
describe("msteams messenger", () => {
|
||||
describe("renderReplyPayloadsToMessages", () => {
|
||||
it("filters silent replies", () => {
|
||||
const messages = renderReplyPayloadsToMessages(
|
||||
[{ text: SILENT_REPLY_TOKEN }],
|
||||
{ textChunkLimit: 4000 },
|
||||
);
|
||||
const messages = renderReplyPayloadsToMessages([{ text: SILENT_REPLY_TOKEN }], {
|
||||
textChunkLimit: 4000,
|
||||
});
|
||||
expect(messages).toEqual([]);
|
||||
});
|
||||
|
||||
@@ -150,8 +149,7 @@ describe("msteams messenger", () => {
|
||||
context: ctx,
|
||||
messages: ["one"],
|
||||
retry: { maxAttempts: 2, baseDelayMs: 0, maxDelayMs: 0 },
|
||||
onRetry: (e) =>
|
||||
retryEvents.push({ nextAttempt: e.nextAttempt, delayMs: e.delayMs }),
|
||||
onRetry: (e) => retryEvents.push({ nextAttempt: e.nextAttempt, delayMs: e.delayMs }),
|
||||
});
|
||||
|
||||
expect(attempts).toEqual(["one", "one"]);
|
||||
|
||||
Reference in New Issue
Block a user