Skip to content

Commit

Permalink
test(index): use correct semver function
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Aug 2, 2023
1 parent 7eac8fa commit 09b29a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { execFile } = require("child_process");
const { promisify } = require("util");
const isHtml = require("is-html");
const path = require("upath");
const { gt, lte } = require("semver");
const { gt, lt } = require("semver");
const generateCombos = require("../test-resources/utils/gen-combos");

const execFileAsync = promisify(execFile);
Expand Down Expand Up @@ -210,7 +210,7 @@ describe("Convert function", () => {
noPictures: true,
outputRtf: true,
};
if (lte(version, "0.21.3")) {
if (lt(version, "0.21.3")) {
await expect(unRtf.convert(file, options)).rejects.toThrow(
`Invalid option provided for the current version of the binary used. 'outputRtf' was introduced in v0.21.3, but received v${version}`
);
Expand Down

0 comments on commit 09b29a6

Please sign in to comment.