refactor(tooling): remove unused cleanup helpers · openclaw/openclaw@0eed410
vincentkoc
·
2026-06-20
·
via Recent Commits to openclaw:main
File tree
extensions/synology-chat/src
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | // Synology Chat tests cover channel.integration plugin behavior. |
2 | | -import type { IncomingMessage, ServerResponse } from "node:http"; |
3 | 2 | import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; |
4 | 3 | import { |
5 | 4 | buildChannelInboundEventContextMock, |
@@ -11,12 +10,6 @@ import {
|
11 | 10 | } from "./channel.test-mocks.js"; |
12 | 11 | import { makeFormBody, makeReq, makeRes } from "./test-http-utils.js"; |
13 | 12 | |
14 | | -type _RegisteredRoute = { |
15 | | -path: string; |
16 | | -accountId: string; |
17 | | -handler: (req: IncomingMessage, res: ServerResponse) => Promise<void>; |
18 | | -}; |
19 | | - |
20 | 13 | let createSynologyChatPlugin: typeof import("./channel.js").createSynologyChatPlugin; |
21 | 14 | |
22 | 15 | function makeStartContext<T>(cfg: T, accountId: string, abortSignal: AbortSignal) { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -439,11 +439,6 @@ class WindowsSmoke extends SmokeRunController<WindowsOptions> {
|
439 | 439 | |
440 | 440 | private log = (text: string): void => this.phases.append(text); |
441 | 441 | |
442 | | -private guestExec = ( |
443 | | -args: string[], |
444 | | -options: { check?: boolean; timeoutMs?: number } = {}, |
445 | | -): string => this.guest.exec(args, options); |
446 | | - |
447 | 442 | private guestPowerShell( |
448 | 443 | script: string, |
449 | 444 | options: { check?: boolean; timeoutMs?: number } = {}, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -289,10 +289,6 @@ function extractMarkdownSections(headingRegex, body = "") {
|
289 | 289 | return sections; |
290 | 290 | } |
291 | 291 | |
292 | | -export function extractEvidenceSections(body = "") { |
293 | | -return extractMarkdownSections(/^#{2,6}\s+evidence\b[^\n]*$/im, body); |
294 | | -} |
295 | | - |
296 | 292 | export function hasAuthoredPullRequestSection(heading, body = "") { |
297 | 293 | const headingPattern = new RegExp(`^#{2,6}\\s+${escapeRegex(heading)}\\b[^\\n]*$`, "im"); |
298 | 294 | return !isMissingValue(extractMarkdownSections(headingPattern, body).at(-1) ?? ""); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。