mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
Fix typo
This commit is contained in:
parent
e939a2aa5a
commit
7669b52aeb
@ -5,7 +5,7 @@ const { getInitLocale } = require('../');
|
||||
describe('I18N default locale', () => {
|
||||
describe('getInitLocale', () => {
|
||||
test('The init locale is english by default', () => {
|
||||
expect(getInitLocale()).toEqual({
|
||||
expect(getInitLocale()).toStrictEqual({
|
||||
code: 'en',
|
||||
name: 'English (en)',
|
||||
});
|
||||
@ -13,8 +13,9 @@ describe('I18N default locale', () => {
|
||||
|
||||
test('The init locale can be configured by an env var', () => {
|
||||
process.env.STRAPI_PLUGIN_I18N_INIT_LOCALE_CODE = 'fr';
|
||||
expect(getInitLocale()).toMatchObject({
|
||||
expect(getInitLocale()).toStrictEqual({
|
||||
code: 'fr',
|
||||
name: 'French (fr)',
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ const getInitLocale = () => {
|
||||
|
||||
if (!matchingLocale) {
|
||||
throw new Error(
|
||||
'Unknown locale code provided in the envrionment variable STRAPI_PLUGIN_I18N_INIT_LOCALE_CODE'
|
||||
'Unknown locale code provided in the environment variable STRAPI_PLUGIN_I18N_INIT_LOCALE_CODE'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user