// SPDX-FileCopyrightText: © 2024 LEDGER SAS // SPDX-License-Identifier: Apache-2.0 // Forked from @ledgerhq/live-currency-format/src/localeUtility.test.ts import { getSeparators } from './localeUtility' describe('localeUtility', () => { test('getSeparators with known locale in staticFallback', () => { const result = getSeparators('en') expect(result.decimal).toBe('.') expect(result.thousands).toBe(',') }) test('getSeparators with locale not in staticFallback', () => { const result = getSeparators('it') expect(result.decimal).toBe(',') expect(result.thousands).toBe('.') }) test('getFallback uses en when locale not in staticFallback', () => { const result = getSeparators('de') expect(result.decimal).toBe(',') expect(result.thousands).toBe('.') }) })