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", - ); - }); });