File size: 1,571 Bytes
8a29801 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | /// <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")
})
})
|