add chord serialization, vitest

This commit is contained in:
2023-07-08 13:29:57 +02:00
parent dbd02e9dec
commit 44f82f2b4e
8 changed files with 1150 additions and 34 deletions

View 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)
})
})