Skip to content

Commit

Permalink
test(index): cover no binpath
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Mar 12, 2024
1 parent 0119864 commit 0ecbc89
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ describe("Node-Poppler module", () => {
});
});

it("Creates a new Poppler instance without the binary path set", () => {
const poppler = new Poppler();
expect(poppler.popplerPath).toBe(testBinaryPath);
});

/**
* @todo Fix this test, mocking of "node:" scheme not supported yet.
* @see {@link https://github.com/jestjs/jest/pull/14297 | Jest PR #14297}
Expand Down

0 comments on commit 0ecbc89

Please sign in to comment.