Skip to content

Commit

Permalink
fix: remove exports test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonluca committed Oct 10, 2024
1 parent 2c50198 commit 3bcee96
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions test/specs/exports.spec.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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",
);
});
});

0 comments on commit 3bcee96

Please sign in to comment.