mirror of
https://github.com/cupcakearmy/svelte-i18n.git
synced 2024-11-16 18:10:43 +01:00
15 lines
288 B
TypeScript
15 lines
288 B
TypeScript
|
import {
|
||
|
getFallbackLocale,
|
||
|
getLoadingDelay,
|
||
|
getFormats,
|
||
|
configure,
|
||
|
} from '../../src/client/configs'
|
||
|
|
||
|
test('configures the fallback locale', () => {
|
||
|
expect(getFallbackLocale()).toBe(null)
|
||
|
configure({
|
||
|
fallbackLocale: 'en',
|
||
|
})
|
||
|
expect(getFallbackLocale()).toBe('en')
|
||
|
})
|