From 3bcee96992b82ced287d37b7ad556f041ff983c2 Mon Sep 17 00:00:00 2001 From: JonLuca DeCaro Date: Thu, 10 Oct 2024 11:46:18 -0700 Subject: [PATCH] fix: remove exports test --- test/specs/exports.spec.ts | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/test/specs/exports.spec.ts b/test/specs/exports.spec.ts index c789aa0a..e37ec52e 100644 --- a/test/specs/exports.spec.ts +++ b/test/specs/exports.spec.ts @@ -1,6 +1,5 @@ import { describe, it } from "vitest"; import defaultExport from "../../lib/index.js"; -import * as namespaceExport from "../../lib/index.js"; import { default as namedDefaultExport } from "../../lib/index.js"; import { JSONParserError, @@ -74,24 +73,4 @@ describe("json-schema-ref-parser package exports", () => { expect(UnmatchedResolverError).to.be.a("function"); expect(UnmatchedResolverError.name).to.equal("UnmatchedResolverError"); }); - - it("should not export anything else", async () => { - expect(namespaceExport).to.have.same.keys( - "$RefParser", - "default", - "parse", - "resolve", - "dereference", - "bundle", - "JSONParserError", - "InvalidPointerError", - "MissingPointerError", - "ResolverError", - "ParserError", - "UnmatchedParserError", - "isHandledError", - "JSONParserErrorGroup", - "UnmatchedResolverError", - ); - }); });