From 4ca44d335dbf78f11e5cbeffd13031615a60b2a1 Mon Sep 17 00:00:00 2001 From: ramonmata Date: Mon, 21 Oct 2019 13:09:44 -0500 Subject: [PATCH] Adds setStyle to spec --- .../table/table-properties/table-properties.spec.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) 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);