@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 03:37 UTC

main
ts 18 lines 451 Bytes
Raw
1 import { describe, expect, it } from "@effect/vitest";
2
3 import { stableStringify } from "./relaySigning.ts";
4
5 describe("relaySigning", () => {
6 it("canonicalizes object keys recursively", () => {
7 expect(
8 stableStringify({
9 z: 1,
10 a: {
11 y: true,
12 b: null,
13 },
14 list: [{ c: "three", a: "one" }],
15 }),
16 ).toBe('{"a":{"b":null,"y":true},"list":[{"a":"one","c":"three"}],"z":1}');
17 });
18 });