From 39e188d040d946fff1d520dcdcee50cc9cf56f35 Mon Sep 17 00:00:00 2001 From: LB Johnston Date: Thu, 3 Oct 2024 06:59:38 +1000 Subject: [PATCH] Use correct `ACTIVE_CONTENT_LOCALE` name in wagtailConfig stubs Fix up from #11166 --- client/src/config/wagtailConfig.test.js | 2 +- client/tests/stubs.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/config/wagtailConfig.test.js b/client/src/config/wagtailConfig.test.js index b18878e8fb2..530b534b91f 100644 --- a/client/src/config/wagtailConfig.test.js +++ b/client/src/config/wagtailConfig.test.js @@ -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), }), ); diff --git a/client/tests/stubs.js b/client/tests/stubs.js index aa4c64e093e..e0d2b315648 100644 --- a/client/tests/stubs.js +++ b/client/tests/stubs.js @@ -35,7 +35,7 @@ const wagtailConfig = { display_name: 'French', }, ], - ACTIVE_LOCALE: 'en', + ACTIVE_CONTENT_LOCALE: 'en', }; const configScript = Object.assign(document.createElement('script'), {