import { expect, test } from "vitest";

import { adjacentTransitions } from "./transitions";

test("draft can only go forward to internal", () => {
  expect(adjacentTransitions("draft")).toEqual({ forward: "internal" });
});
test("internal can go forward to public and back to draft", () => {
  expect(adjacentTransitions("internal")).toEqual({ forward: "public", back: "draft" });
});
test("public can only go back to internal", () => {
  expect(adjacentTransitions("public")).toEqual({ back: "internal" });
});
