Fix tests

This commit is contained in:
Dolan
2021-03-07 21:43:30 +00:00
parent 90495d08a6
commit b972f1789e

View File

@ -22,7 +22,9 @@ describe("TableProperties", () => {
describe("#setStyle", () => { describe("#setStyle", () => {
it("should add a table style property", () => { 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); const tree = new Formatter().format(tp);
expect(tree).to.deep.equal({ expect(tree).to.deep.equal({
"w:tblPr": [{ "w:tblStyle": { _attr: { "w:val": "TableNormal" } } }], "w:tblPr": [{ "w:tblStyle": { _attr: { "w:val": "TableNormal" } } }],