mirror of
https://github.com/alexgetmancom/miband-bot.git
synced 2026-09-05 18:16:18 +03:00
9 lines
297 B
TypeScript
9 lines
297 B
TypeScript
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();
|
|
});
|
|
});
|