Adds setStyle to spec

This commit is contained in:
ramonmata
2019-10-21 13:09:44 -05:00
parent 358d578cd7
commit 4ca44d335d

View File

@ -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);