refactor(tooling): remove unused cleanup helpers

This commit is contained in:
Vincent Koc
2026-06-20 05:35:41 +08:00
parent b073d7cc11
commit 0eed410bd0
3 changed files with 0 additions and 16 deletions

View File

@@ -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) {

View File

@@ -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 } = {},

View File

@@ -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) ?? "");