import { EnvironmentId } from "@t3tools/contracts"; import { expect, it } from "vite-plus/test"; import { makeArchivedThreadsEnvironmentKey, parseArchivedThreadsEnvironmentKey, } from "./archivedThreads.ts"; it("round-trips environment keys in sorted order", () => { const envA = EnvironmentId.make("env-a"); const envB = EnvironmentId.make("env-b"); const key = makeArchivedThreadsEnvironmentKey([envB, envA]); expect(parseArchivedThreadsEnvironmentKey(key)).toEqual([envA, envB]); });