test: 💍 initial configs test

This commit is contained in:
Christian Kaisermann 2019-11-25 23:09:05 -03:00
parent 36bf7f5038
commit 817adb6e4e

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