From b35cfd2edd26002fb8381924a85bbc3b4fdbc6a0 Mon Sep 17 00:00:00 2001 From: Gerrit Birkeland Date: Sat, 7 Dec 2024 09:03:07 -0700 Subject: [PATCH] Remove unnecessary test --- .../utils/options/typedoc-options.test.ts | 30 ------------------- 1 file changed, 30 deletions(-) delete mode 100644 src/test/utils/options/typedoc-options.test.ts diff --git a/src/test/utils/options/typedoc-options.test.ts b/src/test/utils/options/typedoc-options.test.ts deleted file mode 100644 index edc28b5c9..000000000 --- a/src/test/utils/options/typedoc-options.test.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { deepStrictEqual as equal } from "assert"; -import type { DeclarationOptionBase } from "../../../lib/utils/options/index.js"; -import { addTypeDocOptions } from "../../../lib/utils/options/sources/typedoc.js"; -import { readFile } from "../../../lib/utils/fs.js"; -import { TYPEDOC_ROOT } from "../../../lib/utils/general.js"; - -describe("TypeDoc Options", () => { - it("Option documentation", () => { - const names: string[] = []; - addTypeDocOptions({ - addDeclaration(opt: DeclarationOptionBase) { - names.push(opt.name); - }, - }); - names.sort(); - - const documentedNames: string[] = []; - for (const line of readFile(TYPEDOC_ROOT + "/site/options.md").split( - "\n", - )) { - const match = line.match(/^\s*-\s*\[(.*?)\]\(options\//); - if (match) { - documentedNames.push(match[1]); - } - } - documentedNames.sort(); - - equal(names, documentedNames); - }); -});