mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:10:44 +00:00
style: apply formatter fixes
This commit is contained in:
@@ -70,10 +70,7 @@ import type {
|
||||
} from "./monitor-shared.js";
|
||||
import { enrichBlueBubblesParticipantsWithContactNames } from "./participant-contact-names.js";
|
||||
import { isBlueBubblesPrivateApiEnabled } from "./probe.js";
|
||||
import {
|
||||
normalizeBlueBubblesReactionInputStrict,
|
||||
sendBlueBubblesReaction,
|
||||
} from "./reactions.js";
|
||||
import { normalizeBlueBubblesReactionInputStrict, sendBlueBubblesReaction } from "./reactions.js";
|
||||
import type { OpenClawConfig } from "./runtime-api.js";
|
||||
import { normalizeSecretInputString } from "./secret-input.js";
|
||||
import { resolveChatGuidForTarget, sendMessageBlueBubbles } from "./send.js";
|
||||
|
||||
@@ -411,9 +411,7 @@ describe("reactions", () => {
|
||||
it("still throws on empty input (strict error bubbles up unchanged)", () => {
|
||||
// Empty input is a contract error from the caller, not a decorative
|
||||
// emoji the model picked; we intentionally do not mask it.
|
||||
expect(() => normalizeBlueBubblesReactionInput("")).toThrow(
|
||||
/requires an emoji or name/,
|
||||
);
|
||||
expect(() => normalizeBlueBubblesReactionInput("")).toThrow(/requires an emoji or name/);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -119,10 +119,7 @@ const UNSUPPORTED_REACTION_ERROR = "UnsupportedBlueBubblesReaction";
|
||||
* need to detect unsupported input (e.g. config sanity checks) rather
|
||||
* than gracefully substituting a fallback.
|
||||
*/
|
||||
export function normalizeBlueBubblesReactionInputStrict(
|
||||
emoji: string,
|
||||
remove?: boolean,
|
||||
): string {
|
||||
export function normalizeBlueBubblesReactionInputStrict(emoji: string, remove?: boolean): string {
|
||||
const trimmed = emoji.trim();
|
||||
if (!trimmed) {
|
||||
throw new Error("BlueBubbles reaction requires an emoji or name.");
|
||||
|
||||
@@ -25,13 +25,13 @@ describe("resolveCronDeliveryPlan", () => {
|
||||
makeJob({
|
||||
name: "Cron Target Context",
|
||||
payload: { kind: "agentTurn", message: "send a message" },
|
||||
delivery: {
|
||||
mode: "none",
|
||||
channel: "telegram",
|
||||
to: "123:topic:42",
|
||||
threadId: 42,
|
||||
accountId: "ops",
|
||||
},
|
||||
delivery: {
|
||||
mode: "none",
|
||||
channel: "telegram",
|
||||
to: "123:topic:42",
|
||||
threadId: 42,
|
||||
accountId: "ops",
|
||||
},
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user