From 070dda0822360730976e3d47687b39d61e52bc13 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Fri, 27 May 2022 19:48:34 +0800 Subject: [PATCH] fix test --- .../src/server/__tests__/__snapshots__/config.test.ts.snap | 1 + packages/docusaurus/src/server/__tests__/i18n.test.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/packages/docusaurus/src/server/__tests__/__snapshots__/config.test.ts.snap b/packages/docusaurus/src/server/__tests__/__snapshots__/config.test.ts.snap index 36c7ae200aec..64dfeff98eea 100644 --- a/packages/docusaurus/src/server/__tests__/__snapshots__/config.test.ts.snap +++ b/packages/docusaurus/src/server/__tests__/__snapshots__/config.test.ts.snap @@ -13,6 +13,7 @@ exports[`loadSiteConfig website with .cjs siteConfig 1`] = ` "locales": [ "en", ], + "path": "i18n", }, "noIndex": false, "onBrokenLinks": "throw", diff --git a/packages/docusaurus/src/server/__tests__/i18n.test.ts b/packages/docusaurus/src/server/__tests__/i18n.test.ts index 2f7c5f9059ff..8ef8fea9faf3 100644 --- a/packages/docusaurus/src/server/__tests__/i18n.test.ts +++ b/packages/docusaurus/src/server/__tests__/i18n.test.ts @@ -118,6 +118,7 @@ describe('loadI18n', () => { }), ).resolves.toEqual({ defaultLocale: 'fr', + path: 'i18n', locales: ['en', 'fr', 'de'], currentLocale: 'fr', localeConfigs: testLocaleConfigsFor(['en', 'fr', 'de']), @@ -137,6 +138,7 @@ describe('loadI18n', () => { ), ).resolves.toEqual({ defaultLocale: 'fr', + path: 'i18n', locales: ['en', 'fr', 'de'], currentLocale: 'de', localeConfigs: testLocaleConfigsFor(['en', 'fr', 'de']), @@ -159,6 +161,7 @@ describe('loadI18n', () => { ), ).resolves.toEqual({ defaultLocale: 'fr', + path: 'i18n', locales: ['en', 'fr', 'de'], currentLocale: 'de', localeConfigs: {