import { describe, expect, it } from "vitest";
import {
  CommentEntityTypeSchema,
  getCommentToolEntityDescription,
  getCommentToolScopeSentence,
  getSupportedCommentEntityTypes,
} from "../lib/comment-entity-registry.js";

describe("comment entity registry metadata", () => {
  it("keeps the router schema and helper metadata aligned", () => {
    expect(getSupportedCommentEntityTypes()).toEqual(["estimate", "resource"]);
    expect(CommentEntityTypeSchema.options).toEqual(["estimate", "resource"]);
    expect(getCommentToolEntityDescription()).toContain("estimate, resource");
    expect(getCommentToolScopeSentence()).toContain("Supported comment entities: estimate, resource.");
    expect(getCommentToolScopeSentence()).toContain("resource comments follow resource detail visibility");
  });
});
