Use correct `ACTIVE_CONTENT_LOCALE` name in wagtailConfig stubs

Fix up from #11166
pull/12390/head
LB Johnston 2024-10-03 06:59:38 +10:00 zatwierdzone przez LB (Ben Johnston)
rodzic d80193ff30
commit 39e188d040
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -22,7 +22,7 @@ describe('wagtailConfig', () => {
it('exists', () => {
expect(WAGTAIL_CONFIG).toEqual(
expect.objectContaining({
ACTIVE_LOCALE: expect.any(String),
ACTIVE_CONTENT_LOCALE: expect.any(String),
LOCALES: expect.any(Array),
}),
);

Wyświetl plik

@ -35,7 +35,7 @@ const wagtailConfig = {
display_name: 'French',
},
],
ACTIVE_LOCALE: 'en',
ACTIVE_CONTENT_LOCALE: 'en',
};
const configScript = Object.assign(document.createElement('script'), {