Files
Rūdolfs Ošiņš 983fff9006 Move everything into desktop/
In preparation for merging radicle-desktop into radicle-gui. It's a pure rename, so git can follow every file across the move.
2026-10-12 08:41:12 +02:00

17 lines
463 B
TypeScript

import { expect, test } from "vitest";
import { stateCaption } from "@app/lib/identityState";
test("stateCaption names the sibling that was accepted", () => {
expect(
stateCaption({
status: "rejected",
reason: {
type: "sibling",
revision: "4b2d0a1e9f5c3b7a6d8e0f1a2b3c4d5e6f7a8b9c",
},
}),
).toBe("Rejected because sibling 4b2d0a1 was accepted");
expect(stateCaption({ status: "accepted" })).toBeUndefined();
});