18 lines · 451 B · TypeScript
RawDownload
import { describe, expect, it } from "@effect/vitest"; import { stableStringify } from "./relaySigning.ts"; describe("relaySigning", () => {  it("canonicalizes object keys recursively", () => {    expect(      stableStringify({        z: 1,        a: {          y: true,          b: null,        },        list: [{ c: "three", a: "one" }],      }),    ).toBe('{"a":{"b":null,"y":true},"list":[{"a":"one","c":"three"}],"z":1}');  });});

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t