Skip to content

Commit

Permalink
Hotfix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edi9999 committed Dec 22, 2023
1 parent ed31970 commit 9467ff4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion es6/tests/e2e/modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ const {
createDocV4,
captureLogs,
expect,
getZip,
} = require("../utils.js");

const Docxtemplater = require("../../docxtemplater.js");

const inspectModule = require("../../inspect-module.js");
const Errors = require("../../errors.js");
const { traits, uniq } = require("../../doc-utils.js");
Expand Down Expand Up @@ -46,7 +50,7 @@ describe("Verify apiversion", function () {

it("should fail when trying to attach null module", function () {
expectToThrow(
() => createDocV4("loop-valid.docx", { modules: [null] }),
() => new Docxtemplater(getZip("loop-valid.docx"), { modules: [null] }),
Error,
{
message: "Cannot attachModule with a falsy value",
Expand Down

0 comments on commit 9467ff4

Please sign in to comment.