19 lines
705 B
TypeScript
19 lines
705 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { readRepoFile } from "~/utils/testing/repoPaths";
|
|
|
|
const sourceFiles = [
|
|
"apps/web/app/components/entities/relationships/EntityRelationshipsTable.tsx",
|
|
"apps/web/app/components/entities/views/EntityViewsTable.tsx",
|
|
];
|
|
|
|
describe("entity table i18n formatting", () => {
|
|
it("uses locale-aware formatters for relationship and view counts", () => {
|
|
const sources = sourceFiles.map((file) => readRepoFile(file)).join("\n");
|
|
|
|
expect(sources).toContain("useLocaleFormatters");
|
|
expect(sources).toContain("formatters.number");
|
|
expect(sources).not.toContain("NumberUtils");
|
|
expect(sources).not.toContain("ui.autogenerated");
|
|
});
|
|
});
|