ソースを参照

Use correct `ACTIVE_CONTENT_LOCALE` name in wagtailConfig stubs

Fix up from #11166
LB Johnston 5 ヶ月 前
コミット
39e188d040
2 ファイル変更2 行追加2 行削除
  1. 1 1
      client/src/config/wagtailConfig.test.js
  2. 1 1
      client/tests/stubs.js

+ 1 - 1
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),
         }),
       );

+ 1 - 1
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'), {