kunkun/packages/utils/__tests__/compress.test.ts
Huakun Shen ad83e89e52
feat: implement pixel dance animation component, page and command (#8)
* feat: implement pixel dance animation component, page and command

* feat: make entire dance page draggable

* feat: add dance transition for ui-iframe extension loading
2024-11-03 19:34:07 -05:00

9 lines
337 B
TypeScript

import { expect, test } from "bun:test"
import { compress, decompress } from "lz-string"
import { compressString, decompressString } from "../src"
test("decompressString", async () => {
const data = await fetch("https://dance.kunkun.sh/api/data").then((res) => res.text())
expect(decompressString(compressString(data))).toBe(data)
})