svelte-i18n/test/client/configs.test.ts
Christian Kaisermann 817adb6e4e test: 💍 initial configs test
2019-11-25 23:09:05 -03:00

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')
})