mirror of
https://github.com/cupcakearmy/svelte-i18n.git
synced 2024-11-16 09:59:58 +01:00
test: 💍 initial configs test
This commit is contained in:
parent
36bf7f5038
commit
817adb6e4e
14
test/client/configs.test.ts
Normal file
14
test/client/configs.test.ts
Normal file
@ -0,0 +1,14 @@
|
||||
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')
|
||||
})
|
Loading…
Reference in New Issue
Block a user