mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
test(backend): remove duplicate and useless tests (#2820)
This commit is contained in:
1 parent
deac653a9e
commit
56e04e7b53
102 files changed
+10
-15831
No files matched your search
@@ -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);
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user