test: fix rebase-introduced tsgo regressions
This commit is contained in:
parent
1357e02cff
commit
21087c5c70
@ -1,7 +1,6 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import type { OpenClawConfig } from "./config.js";
|
||||
import { migrateLegacyConfig, validateConfigObject } from "./config.js";
|
||||
import type { OpenClawConfig } from "./config.js";
|
||||
|
||||
function getLegacyRouting(config: unknown) {
|
||||
return (config as { routing?: Record<string, unknown> } | undefined)?.routing;
|
||||
|
||||
@ -25,7 +25,6 @@ import {
|
||||
resolveSafeBins,
|
||||
type ExecApprovalsAgent,
|
||||
type ExecAllowlistEntry,
|
||||
type ExecApprovalsAgent,
|
||||
type ExecApprovalsFile,
|
||||
} from "./exec-approvals.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 { HEARTBEAT_PROMPT } from "../auto-reply/heartbeat.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 type { OpenClawConfig } from "../config/config.js";
|
||||
import {
|
||||
@ -21,7 +20,6 @@ import {
|
||||
type HeartbeatDeps,
|
||||
resolveHeartbeatIntervalMs,
|
||||
resolveHeartbeatPrompt,
|
||||
type HeartbeatDeps,
|
||||
runHeartbeatOnce,
|
||||
} from "./heartbeat-runner.js";
|
||||
import {
|
||||
|
||||
@ -604,7 +604,7 @@ describe("sendMessageTelegram", () => {
|
||||
...("replyToMessageId" in testCase.options
|
||||
? { replyToMessageId: testCase.options.replyToMessageId }
|
||||
: {}),
|
||||
...("buttons" in testCase.options
|
||||
...(Array.isArray(testCase.options.buttons)
|
||||
? {
|
||||
buttons: testCase.options.buttons.map((row) => row.map((button) => ({ ...button }))),
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user