Download mobile/modules/engine/src/stores/__tests__/bluetoothSettingKeys.test.ts from Anirudh1950/MentraOS: direct link, hf CLI and curl.
- Browser
- Download file 1.57 kB
-
https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/modules/engine/src/stores/__tests__/bluetoothSettingKeys.test.ts
- Command line
-
hf download hf://Anirudh1950/MentraOS/mobile/modules/engine/src/stores/__tests__/bluetoothSettingKeys.test.ts
-
curl -L -o bluetoothSettingKeys.test.ts https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/modules/engine/src/stores/__tests__/bluetoothSettingKeys.test.ts
1.57 kB
| /// <reference types="bun-types" /> | |
| import {describe, expect, test} from "bun:test" | |
| import {MENTRA_LIVE_SETTING_KEYS} from "../bluetoothSettingKeys" | |
| describe("MENTRA_LIVE_SETTING_KEYS", () => { | |
| test("syncs button video settings through the canonical atomic object", () => { | |
| expect(MENTRA_LIVE_SETTING_KEYS).toContain("button_video_settings") | |
| expect(MENTRA_LIVE_SETTING_KEYS).not.toContain("button_video_width") | |
| expect(MENTRA_LIVE_SETTING_KEYS).not.toContain("button_video_height") | |
| expect(MENTRA_LIVE_SETTING_KEYS).not.toContain("button_video_fps") | |
| }) | |
| test("includes Mentra Live mic gate toggles", () => { | |
| expect(MENTRA_LIVE_SETTING_KEYS).toContain("voice_activity_detection_enabled") | |
| expect(MENTRA_LIVE_SETTING_KEYS).toContain("loudness_gate_enabled") | |
| }) | |
| test("syncs auto power-off, which the glasses cannot learn any other way", () => { | |
| expect(MENTRA_LIVE_SETTING_KEYS).toContain("auto_power_off_enabled") | |
| }) | |
| test("does not sync a phone-side takeover flag; the SDK owns the pairing state", () => { | |
| expect(MENTRA_LIVE_SETTING_KEYS).not.toContain("mentra_live_owner_lost") | |
| }) | |
| test("syncs the secure-firmware flag so native can tell legacy glasses from secure ones", () => { | |
| expect(MENTRA_LIVE_SETTING_KEYS).toContain("mentra_live_secure_firmware") | |
| }) | |
| test("syncs only the effective mic tuning, never the persisted one", () => { | |
| expect(MENTRA_LIVE_SETTING_KEYS).toContain("mic_tuning") | |
| expect(MENTRA_LIVE_SETTING_KEYS).not.toContain("mic_tuning_desired") | |
| }) | |
| }) | |