test(backend): remove duplicate and useless tests (#2820)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-17 15:32:25 +02:00
1 parent deac653a9e
commit 56e04e7b53
102 files changed
+10 -15831

No files matched your search

+1 -12
View File
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {normalizeRegionCode} from '@fluxer/geo_utils/src/RegionCodeValidation';
import {resolveRegionDisplayName, resolveRegionDisplayNames} from '@fluxer/geo_utils/src/RegionDisplayNameResolver';
import {resolveRegionDisplayName} from '@fluxer/geo_utils/src/RegionDisplayNameResolver';
interface RegionDisplayNameOptions {
locale?: string;
@@ -31,14 +31,3 @@ export function getRegionDisplayName(regionCode: string, options?: RegionDisplay
const displayName = resolveRegionDisplayName(regionCode, options?.locale);
return applyRegionCodeFallback(regionCode, displayName, options);
}
export function getRegionDisplayNames(
regionCodes: ReadonlyArray<string>,
options?: RegionDisplayNameOptions,
): Array<string | undefined> {
const displayNames = resolveRegionDisplayNames(regionCodes, options?.locale);
return displayNames.map((displayName, index) => {
const regionCode = regionCodes[index] ?? '';
return applyRegionCodeFallback(regionCode, displayName, options);
});
}