import { expect, test } from "bun:test";
import { normalizeComponentName } from "../src/runtime.ts";

test("component lookup treats PascalCase, kebab-case, and snake_case as equivalent", () => {
  expect(normalizeComponentName("PublicHeader")).toBe("publicheader");
  expect(normalizeComponentName("public-header")).toBe("publicheader");
  expect(normalizeComponentName("public_header")).toBe("publicheader");
});

test("component lookup preserves meaningful alphanumeric differences", () => {
  expect(normalizeComponentName("Card2")).not.toBe(normalizeComponentName("Card"));
  expect(normalizeComponentName("PublicFooter")).not.toBe(normalizeComponentName("PublicHeader"));
});
