mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-21 01:12:59 +00:00
add chord serialization, vitest
This commit is contained in:
8
src/lib/serial/chord.spec.ts
Normal file
8
src/lib/serial/chord.spec.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import {describe, it, expect} from "vitest"
|
||||
import {serializeActions} from "$lib/serial/chord"
|
||||
|
||||
describe("chords", function () {
|
||||
it("should serialize actions", function () {
|
||||
expect(serializeActions([67, 2])).toBe(0xcc200000000000000000000000000n)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user