From f5a82913f14181f3fa59e5012a105461e201ccd4 Mon Sep 17 00:00:00 2001 From: tgreyuk Date: Sun, 10 Apr 2022 00:05:04 +0100 Subject: [PATCH] Fixed test --- packages/docusaurus-plugin-typedoc/test/specs/plugin.spec.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/docusaurus-plugin-typedoc/test/specs/plugin.spec.ts b/packages/docusaurus-plugin-typedoc/test/specs/plugin.spec.ts index 09c6fa4a0..16e9bdd09 100644 --- a/packages/docusaurus-plugin-typedoc/test/specs/plugin.spec.ts +++ b/packages/docusaurus-plugin-typedoc/test/specs/plugin.spec.ts @@ -1,7 +1,5 @@ - import * as fs from 'fs-extra'; import * as tmp from 'tmp'; - import typedocPlugin from '../../dist/plugin'; tmp.setGracefulCleanup(); @@ -37,7 +35,7 @@ describe(`Plugin:`, () => { }); test(`should render`, () => { const files = fs.readdirSync(tmpobj.name + '/docs/api'); - expect(files).toMatchSnapshot(); + expect(files.sort((a, b) => a.localeCompare(b))).toMatchSnapshot(); }); test(`should write doc`, () => {