mirror of
https://github.com/alexgetmancom/miband-bot.git
synced 2026-09-15 15:04:06 +03:00
rewrite bot in TypeScript and add locale switching
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user