Download cloud-v2/packages/runtime/src/services/runtime-services.test.ts from Anirudh1950/MentraOS: direct link, hf CLI and curl.
- Browser
- Download file 796 Bytes
-
https://huggingface.co/Anirudh1950/MentraOS/resolve/main/cloud-v2/packages/runtime/src/services/runtime-services.test.ts
- Command line
-
hf download hf://Anirudh1950/MentraOS/cloud-v2/packages/runtime/src/services/runtime-services.test.ts
-
curl -L -o runtime-services.test.ts https://huggingface.co/Anirudh1950/MentraOS/resolve/main/cloud-v2/packages/runtime/src/services/runtime-services.test.ts
796 Bytes
| import { describe, expect, test } from "bun:test"; | |
| import { resolveRuntimeServices, serviceList } from "./runtime-services"; | |
| describe("Runtime service composition", () => { | |
| test("resolves the restricted enterprise profile", () => { | |
| expect(serviceList(resolveRuntimeServices("meetings"))).toEqual([ | |
| "meetings", | |
| ]); | |
| }); | |
| test("rejects unknown modules instead of inferring behavior", () => { | |
| expect(() => resolveRuntimeServices("meetings,speech-maybe")).toThrow( | |
| "unknown services: speech-maybe", | |
| ); | |
| }); | |
| test("keeps the existing full profile when the variable is absent", () => { | |
| expect(serviceList(resolveRuntimeServices(undefined))).toEqual([ | |
| "realtime-audio", | |
| "camera", | |
| "maps", | |
| "tts", | |
| ]); | |
| }); | |
| }); | |