Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,18 @@
|
||||
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");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user