mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 16:14:31 +00:00
test: fix rebase-introduced tsgo regressions
This commit is contained in:
committed by
Peter Steinberger
parent
1357e02cff
commit
21087c5c70
@@ -1,7 +1,6 @@
|
|||||||
import { describe, expect, it } from "vitest";
|
import { describe, expect, it } from "vitest";
|
||||||
import type { OpenClawConfig } from "./config.js";
|
import type { OpenClawConfig } from "./config.js";
|
||||||
import { migrateLegacyConfig, validateConfigObject } from "./config.js";
|
import { migrateLegacyConfig, validateConfigObject } from "./config.js";
|
||||||
import type { OpenClawConfig } from "./config.js";
|
|
||||||
|
|
||||||
function getLegacyRouting(config: unknown) {
|
function getLegacyRouting(config: unknown) {
|
||||||
return (config as { routing?: Record<string, unknown> } | undefined)?.routing;
|
return (config as { routing?: Record<string, unknown> } | undefined)?.routing;
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ import {
|
|||||||
resolveSafeBins,
|
resolveSafeBins,
|
||||||
type ExecApprovalsAgent,
|
type ExecApprovalsAgent,
|
||||||
type ExecAllowlistEntry,
|
type ExecAllowlistEntry,
|
||||||
type ExecApprovalsAgent,
|
|
||||||
type ExecApprovalsFile,
|
type ExecApprovalsFile,
|
||||||
} from "./exec-approvals.js";
|
} from "./exec-approvals.js";
|
||||||
import { SAFE_BIN_PROFILE_FIXTURES, SAFE_BIN_PROFILES } from "./exec-safe-bin-policy.js";
|
import { SAFE_BIN_PROFILE_FIXTURES, SAFE_BIN_PROFILES } from "./exec-safe-bin-policy.js";
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import path from "node:path";
|
|||||||
import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||||
import { HEARTBEAT_PROMPT } from "../auto-reply/heartbeat.js";
|
import { HEARTBEAT_PROMPT } from "../auto-reply/heartbeat.js";
|
||||||
import * as replyModule from "../auto-reply/reply.js";
|
import * as replyModule from "../auto-reply/reply.js";
|
||||||
import type { ReplyPayload } from "../auto-reply/types.js";
|
|
||||||
import { whatsappOutbound } from "../channels/plugins/outbound/whatsapp.js";
|
import { whatsappOutbound } from "../channels/plugins/outbound/whatsapp.js";
|
||||||
import type { OpenClawConfig } from "../config/config.js";
|
import type { OpenClawConfig } from "../config/config.js";
|
||||||
import {
|
import {
|
||||||
@@ -21,7 +20,6 @@ import {
|
|||||||
type HeartbeatDeps,
|
type HeartbeatDeps,
|
||||||
resolveHeartbeatIntervalMs,
|
resolveHeartbeatIntervalMs,
|
||||||
resolveHeartbeatPrompt,
|
resolveHeartbeatPrompt,
|
||||||
type HeartbeatDeps,
|
|
||||||
runHeartbeatOnce,
|
runHeartbeatOnce,
|
||||||
} from "./heartbeat-runner.js";
|
} from "./heartbeat-runner.js";
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -604,7 +604,7 @@ describe("sendMessageTelegram", () => {
|
|||||||
...("replyToMessageId" in testCase.options
|
...("replyToMessageId" in testCase.options
|
||||||
? { replyToMessageId: testCase.options.replyToMessageId }
|
? { replyToMessageId: testCase.options.replyToMessageId }
|
||||||
: {}),
|
: {}),
|
||||||
...("buttons" in testCase.options
|
...(Array.isArray(testCase.options.buttons)
|
||||||
? {
|
? {
|
||||||
buttons: testCase.options.buttons.map((row) => row.map((button) => ({ ...button }))),
|
buttons: testCase.options.buttons.map((row) => row.map((button) => ({ ...button }))),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user