Download src/plugins/contracts/deprecated-internal-config-api.test.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 625 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/plugins/contracts/deprecated-internal-config-api.test.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/plugins/contracts/deprecated-internal-config-api.test.ts
-
curl -L -o deprecated-internal-config-api.test.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/plugins/contracts/deprecated-internal-config-api.test.ts
625 Bytes
| // Deprecated internal config API tests cover forbidden legacy plugin config API usage. | |
| import { beforeAll, describe, expect, it } from "vitest"; | |
| import { collectDeprecatedInternalConfigApiViolations } from "../../../scripts/lib/config-boundary-guard.mts"; | |
| describe("deprecated internal config API guardrails", () => { | |
| let violations: ReturnType<typeof collectDeprecatedInternalConfigApiViolations>; | |
| beforeAll(() => { | |
| violations = collectDeprecatedInternalConfigApiViolations(); | |
| }); | |
| it("keeps production code off deprecated config load/write seams", () => { | |
| expect(violations).toStrictEqual([]); | |
| }); | |
| }); | |