svelte-i18n/test/client/configs.test.ts

15 lines
288 B
TypeScript
Raw Normal View History

2019-11-26 03:09:05 +01:00
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')
})