Skip to content

Commit 00b2a0e

Browse files
committed
test(graph-ui): fix locale-dependent number-format assertion in GraphTab.test.ts
Pin formatGraphLimitNotice to 'en-US' to resolve unit test failures under non-en_US (e.g. German de_*) locales. Fixes DeusData#825 Signed-off-by: sahil-mangla <manglasahil2017@gmail.com>
1 parent 9871e7e commit 00b2a0e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎graph-ui/src/components/GraphTab.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface GraphTabProps {
3131

3232
export function formatGraphLimitNotice(data: GraphData | null): string | null {
3333
if (!data || data.total_nodes <= data.nodes.length) return null;
34-
return `Showing ${data.nodes.length.toLocaleString()} of ${data.total_nodes.toLocaleString()} nodes. Use filters to narrow.`;
34+
return `Showing ${data.nodes.length.toLocaleString("en-US")} of ${data.total_nodes.toLocaleString("en-US")} nodes. Use filters to narrow.`;
3535
}
3636

3737
export function GraphTab({ project }: GraphTabProps) {

0 commit comments

Comments
 (0)