Download superlog/apps/api/src/system-capabilities.test.ts from smlflg/Experimente: direct link, hf CLI and curl.
- Browser
- Download file 848 Bytes
-
https://huggingface.co/smlflg/Experimente/resolve/main/superlog/apps/api/src/system-capabilities.test.ts
- Command line
-
hf download hf://smlflg/Experimente/superlog/apps/api/src/system-capabilities.test.ts
-
curl -L -o system-capabilities.test.ts https://huggingface.co/smlflg/Experimente/resolve/main/superlog/apps/api/src/system-capabilities.test.ts
848 Bytes
| import { strict as assert } from "node:assert"; | |
| import { test } from "node:test"; | |
| import { buildSystemCapabilities } from "./system-capabilities.js"; | |
| test("system capabilities default to the open-core community edition", () => { | |
| assert.deepEqual(buildSystemCapabilities({}), { | |
| edition: "community", | |
| billing: "none", | |
| managedAgents: false, | |
| ossAgents: true, | |
| cloudUpgradeLinks: true, | |
| }); | |
| }); | |
| test("system capabilities expose cloud billing and managed agents when explicitly enabled", () => { | |
| assert.deepEqual( | |
| buildSystemCapabilities({ | |
| SUPERLOG_EDITION: "cloud", | |
| SUPERLOG_BILLING_PROVIDER: "stripe", | |
| SUPERLOG_MANAGED_AGENTS_ENABLED: "true", | |
| }), | |
| { | |
| edition: "cloud", | |
| billing: "stripe", | |
| managedAgents: true, | |
| ossAgents: true, | |
| cloudUpgradeLinks: false, | |
| }, | |
| ); | |
| }); | |