mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 01:50:39 +09:00
17 lines
614 B
TypeScript
17 lines
614 B
TypeScript
|
|
import { describe, expect, it } from "vitest";
|
||
|
|
import { isSandboxProviderSupportedForAdapter } from "./environment-support.js";
|
||
|
|
|
||
|
|
describe("isSandboxProviderSupportedForAdapter", () => {
|
||
|
|
it("accepts additional sandbox providers for remote-managed adapters", () => {
|
||
|
|
expect(
|
||
|
|
isSandboxProviderSupportedForAdapter("codex_local", "fake-plugin", ["fake-plugin"]),
|
||
|
|
).toBe(true);
|
||
|
|
});
|
||
|
|
|
||
|
|
it("rejects providers for adapters without remote-managed environment support", () => {
|
||
|
|
expect(
|
||
|
|
isSandboxProviderSupportedForAdapter("openclaw", "fake-plugin", ["fake-plugin"]),
|
||
|
|
).toBe(false);
|
||
|
|
});
|
||
|
|
});
|