rewrite bot in TypeScript and add locale switching

This commit is contained in:
Alex Getman
2026-08-12 13:12:04 +03:00
parent 905b69f568
commit 2cb8740e06
121 changed files with 5230 additions and 15333 deletions
+8
View File
@@ -0,0 +1,8 @@
import { describe, expect, test } from "bun:test";
import { parseAllDaySleepBytes } from "../src/xiaomi/fds.js";
describe("FDS parser", () => {
test("rejects truncated sleep payloads", () => {
expect(parseAllDaySleepBytes(new Uint8Array([0, 0, 0, 0, 0, 1, 0, 0, 0]))).toBeNull();
});
});