From 8ae07c521dd200ed30d2c699c81f3c5e8d8186da Mon Sep 17 00:00:00 2001 From: slorber Date: Wed, 30 Sep 2020 17:58:12 +0200 Subject: [PATCH] fix tests --- .../docusaurus/src/server/themes/__tests__/alias.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/docusaurus/src/server/themes/__tests__/alias.test.ts b/packages/docusaurus/src/server/themes/__tests__/alias.test.ts index 61672780d05c..0e3a889d8240 100644 --- a/packages/docusaurus/src/server/themes/__tests__/alias.test.ts +++ b/packages/docusaurus/src/server/themes/__tests__/alias.test.ts @@ -13,7 +13,7 @@ describe('themeAlias', () => { test('valid themePath 1 with components', () => { const fixtures = path.join(__dirname, '__fixtures__'); const themePath = path.join(fixtures, 'theme-1'); - const alias = themeAlias(themePath); + const alias = themeAlias(themePath, true); expect(alias).toEqual({ '@theme/Footer': path.join(themePath, 'Footer/index.js'), '@theme-original/Footer': path.join(themePath, 'Footer/index.js'), @@ -37,7 +37,7 @@ describe('themeAlias', () => { test('valid themePath 2 with components', () => { const fixtures = path.join(__dirname, '__fixtures__'); const themePath = path.join(fixtures, 'theme-2'); - const alias = themeAlias(themePath); + const alias = themeAlias(themePath, true); expect(alias).toEqual({ '@theme/Navbar': path.join(themePath, 'Navbar.js'), '@theme-original/Navbar': path.join(themePath, 'Navbar.js'), @@ -62,7 +62,7 @@ describe('themeAlias', () => { const fixtures = path.join(__dirname, '__fixtures__'); const themePath = path.join(fixtures, 'empty-theme'); fs.ensureDirSync(themePath); - const alias = themeAlias(themePath); + const alias = themeAlias(themePath, true); expect(alias).toEqual({}); }); @@ -77,7 +77,7 @@ describe('themeAlias', () => { test('invalid themePath that does not exist', () => { const fixtures = path.join(__dirname, '__fixtures__'); const themePath = path.join(fixtures, '__noExist__'); - const alias = themeAlias(themePath); + const alias = themeAlias(themePath, true); expect(alias).toEqual({}); }); });