import { describe, expect, it } from "vitest";

import { LEGACY_GLOBAL_ROUTE_REDIRECTS } from "../legacy-global-route-redirects";

describe("legacy global route redirects", () => {
  it("redirects character-scoped global pages without permanent caching", () => {
    expect(LEGACY_GLOBAL_ROUTE_REDIRECTS).toEqual([
      {
        source: "/characters/:characterSlug/feedback",
        destination: "/feedback?returnTo=/characters/:characterSlug/chat",
        permanent: false,
      },
      {
        source: "/characters/:characterSlug/coins-rules",
        destination:
          "/coins-rules?returnTo=/characters/:characterSlug/chat",
        permanent: false,
      },
    ]);
  });
});
