mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-19 08:22:53 +00:00
16 lines
436 B
JavaScript
16 lines
436 B
JavaScript
import { describe, it, expect } from "vitest";
|
|
import {
|
|
compressActions,
|
|
decompressActions,
|
|
} from "../lib/serialization/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);
|
|
});
|
|
});
|
|
});
|