mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 22:54:33 +00:00
chore: Fix types in tests 39/N.
This commit is contained in:
@@ -436,9 +436,13 @@ describe("telegramMessageActions", () => {
|
||||
|
||||
it("rejects non-integer messageId for edit before reaching telegram-actions", async () => {
|
||||
const cfg = { channels: { telegram: { botToken: "tok" } } } as OpenClawConfig;
|
||||
const handleAction = telegramMessageActions.handleAction;
|
||||
if (!handleAction) {
|
||||
throw new Error("telegram handleAction unavailable");
|
||||
}
|
||||
|
||||
await expect(
|
||||
telegramMessageActions.handleAction({
|
||||
handleAction({
|
||||
channel: "telegram",
|
||||
action: "edit",
|
||||
params: {
|
||||
@@ -595,9 +599,13 @@ describe("signalMessageActions", () => {
|
||||
const cfg = {
|
||||
channels: { signal: { account: "+15550001111", actions: { reactions: false } } },
|
||||
} as OpenClawConfig;
|
||||
const handleAction = signalMessageActions.handleAction;
|
||||
if (!handleAction) {
|
||||
throw new Error("signal handleAction unavailable");
|
||||
}
|
||||
|
||||
await expect(
|
||||
signalMessageActions.handleAction({
|
||||
handleAction({
|
||||
channel: "signal",
|
||||
action: "react",
|
||||
params: { to: "+15550001111", messageId: "123", emoji: "✅" },
|
||||
@@ -661,9 +669,13 @@ describe("signalMessageActions", () => {
|
||||
const cfg = {
|
||||
channels: { signal: { account: "+15550001111" } },
|
||||
} as OpenClawConfig;
|
||||
const handleAction = signalMessageActions.handleAction;
|
||||
if (!handleAction) {
|
||||
throw new Error("signal handleAction unavailable");
|
||||
}
|
||||
|
||||
await expect(
|
||||
signalMessageActions.handleAction({
|
||||
handleAction({
|
||||
channel: "signal",
|
||||
action: "react",
|
||||
params: { to: "signal:group:group-id", messageId: "123", emoji: "✅" },
|
||||
|
||||
Reference in New Issue
Block a user