mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-27 11:41:11 +00:00
refactor: delete dead infra and config exports (#106019)
* refactor: delete dead infra and config exports * refactor: preserve live infra and config contracts * refactor(config): remove obsolete file-store lifecycle APIs * refactor(infra): finish current-main dead export cleanup
This commit is contained in:
committed by
GitHub
parent
8dd57279cd
commit
d1684f48a3
@@ -1,6 +1,5 @@
|
||||
/** Tests environment sanitization for node-host command execution. */
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { parseWindowsCodePage } from "../infra/windows-encoding.js";
|
||||
import { withEnv } from "../test-utils/env.js";
|
||||
import { decodeCapturedOutputBuffer, sanitizeEnv } from "./invoke.js";
|
||||
import { buildNodeEventParams } from "./invoke.js";
|
||||
@@ -64,12 +63,6 @@ describe("node-host sanitizeEnv", () => {
|
||||
});
|
||||
|
||||
describe("node-host output decoding", () => {
|
||||
it("parses code pages from chcp output text", () => {
|
||||
expect(parseWindowsCodePage("Active code page: 936")).toBe(936);
|
||||
expect(parseWindowsCodePage("活动代码页: 65001")).toBe(65001);
|
||||
expect(parseWindowsCodePage("no code page")).toBeNull();
|
||||
});
|
||||
|
||||
it("decodes GBK output on Windows when code page is known", () => {
|
||||
let supportsGbk = true;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user