From b972f1789e09d2e32f553dfde01d041b91e1ef93 Mon Sep 17 00:00:00 2001 From: Dolan Date: Sun, 7 Mar 2021 21:43:30 +0000 Subject: [PATCH] Fix tests --- src/file/table/table-properties/table-properties.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/file/table/table-properties/table-properties.spec.ts b/src/file/table/table-properties/table-properties.spec.ts index 49ff9f740e..a6a9b5879f 100644 --- a/src/file/table/table-properties/table-properties.spec.ts +++ b/src/file/table/table-properties/table-properties.spec.ts @@ -22,7 +22,9 @@ describe("TableProperties", () => { describe("#setStyle", () => { it("should add a table style property", () => { - const tp = new TableProperties().setStyle("TableNormal"); + const tp = new TableProperties({ + style: "TableNormal", + }); const tree = new Formatter().format(tp); expect(tree).to.deep.equal({ "w:tblPr": [{ "w:tblStyle": { _attr: { "w:val": "TableNormal" } } }],