Adds setStyle to spec
This commit is contained in:
@ -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", () => {
|
describe("#setWidth", () => {
|
||||||
it("should add a table width property", () => {
|
it("should add a table width property", () => {
|
||||||
const tp = new TableProperties().setWidth(1234, WidthType.DXA);
|
const tp = new TableProperties().setWidth(1234, WidthType.DXA);
|
||||||
|
Reference in New Issue
Block a user