mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-19 00:13:01 +00:00
13 lines
412 B
TypeScript
13 lines
412 B
TypeScript
import { describe, it, expect } from "vitest";
|
|
import { compressActions, decompressActions } from "./actions";
|
|
|
|
describe("layout", function () {
|
|
const actions = [1023, 255, 256, 42, 32, 532, 8000];
|
|
|
|
describe("compression", function () {
|
|
it("should compress back and forth arrays divisible by 4", function () {
|
|
expect(decompressActions(compressActions(actions))).toEqual(actions);
|
|
});
|
|
});
|
|
});
|