diff --git a/src/file/table/table-properties/table-properties.spec.ts b/src/file/table/table-properties/table-properties.spec.ts index 960d117b7c..88f7abde4e 100644 --- a/src/file/table/table-properties/table-properties.spec.ts +++ b/src/file/table/table-properties/table-properties.spec.ts @@ -19,6 +19,16 @@ describe("TableProperties", () => { }); }); + describe("#setStyle", () => { + it("should add a table style property", () => { + const tp = new TableProperties().setStyle("TableNormal"); + const tree = new Formatter().format(tp); + expect(tree).to.deep.equal({ + "w:tblPr": [{ "w:tblStyle": { _attr: { "w:val": "TableNormal" } } }], + }); + }); + }); + describe("#setWidth", () => { it("should add a table width property", () => { const tp = new TableProperties().setWidth(1234, WidthType.DXA);