16 lines
540 B
TypeScript
16 lines
540 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { sanitizeInheritedPaperclipEnv } from "./server-utils.js";
|
|
|
|
describe("sanitizeInheritedPaperclipEnv", () => {
|
|
it("drops the host-only Paperclip CLI command pointer", () => {
|
|
expect(sanitizeInheritedPaperclipEnv({
|
|
PAPERCLIPAI_CMD: "node /missing/paperclipai/dist/index.js",
|
|
PAPERCLIP_RUNTIME_API_URL: "http://127.0.0.1:3100",
|
|
PATH: "/usr/bin",
|
|
})).toEqual({
|
|
PAPERCLIP_RUNTIME_API_URL: "http://127.0.0.1:3100",
|
|
PATH: "/usr/bin",
|
|
});
|
|
});
|
|
});
|