Merge pull request #273 from dolanmiu/feat/table-merge-fix

Add higher width for GridCol to fix merging cells
This commit is contained in:
Dolan
2019-02-26 21:53:14 +00:00
committed by GitHub
4 changed files with 55 additions and 7 deletions

View File

@ -78,9 +78,9 @@ describe("Document", () => {
.to.have.property("w:tbl")
.which.includes({
"w:tblGrid": [
{ "w:gridCol": [{ _attr: { "w:w": 1 } }] },
{ "w:gridCol": [{ _attr: { "w:w": 1 } }] },
{ "w:gridCol": [{ _attr: { "w:w": 1 } }] },
{ "w:gridCol": [{ _attr: { "w:w": 100 } }] },
{ "w:gridCol": [{ _attr: { "w:w": 100 } }] },
{ "w:gridCol": [{ _attr: { "w:w": 100 } }] },
],
});
expect(body[0]["w:tbl"].filter((x) => x["w:tr"])).to.have.length(2);