mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-25 13:49:34 +00:00
refactor(tooling): remove unused cleanup helpers
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
// Synology Chat tests cover channel.integration plugin behavior.
|
||||
import type { IncomingMessage, ServerResponse } from "node:http";
|
||||
import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import {
|
||||
buildChannelInboundEventContextMock,
|
||||
@@ -11,12 +10,6 @@ import {
|
||||
} from "./channel.test-mocks.js";
|
||||
import { makeFormBody, makeReq, makeRes } from "./test-http-utils.js";
|
||||
|
||||
type _RegisteredRoute = {
|
||||
path: string;
|
||||
accountId: string;
|
||||
handler: (req: IncomingMessage, res: ServerResponse) => Promise<void>;
|
||||
};
|
||||
|
||||
let createSynologyChatPlugin: typeof import("./channel.js").createSynologyChatPlugin;
|
||||
|
||||
function makeStartContext<T>(cfg: T, accountId: string, abortSignal: AbortSignal) {
|
||||
|
||||
@@ -439,11 +439,6 @@ class WindowsSmoke extends SmokeRunController<WindowsOptions> {
|
||||
|
||||
private log = (text: string): void => this.phases.append(text);
|
||||
|
||||
private guestExec = (
|
||||
args: string[],
|
||||
options: { check?: boolean; timeoutMs?: number } = {},
|
||||
): string => this.guest.exec(args, options);
|
||||
|
||||
private guestPowerShell(
|
||||
script: string,
|
||||
options: { check?: boolean; timeoutMs?: number } = {},
|
||||
|
||||
@@ -289,10 +289,6 @@ function extractMarkdownSections(headingRegex, body = "") {
|
||||
return sections;
|
||||
}
|
||||
|
||||
export function extractEvidenceSections(body = "") {
|
||||
return extractMarkdownSections(/^#{2,6}\s+evidence\b[^\n]*$/im, body);
|
||||
}
|
||||
|
||||
export function hasAuthoredPullRequestSection(heading, body = "") {
|
||||
const headingPattern = new RegExp(`^#{2,6}\\s+${escapeRegex(heading)}\\b[^\\n]*$`, "im");
|
||||
return !isMissingValue(extractMarkdownSections(headingPattern, body).at(-1) ?? "");
|
||||
|
||||
Reference in New Issue
Block a user