#1529 - Word wrap feature

This commit is contained in:
Dolan
2022-10-25 18:53:00 +01:00
parent f4ed171f85
commit 9bed303d34
8 changed files with 79 additions and 26 deletions

View File

@ -123,5 +123,24 @@ describe("ParagraphProperties", () => {
],
});
});
it("should create with the wordWrap property", () => {
const properties = new ParagraphProperties({
wordWrap: true,
});
const tree = new Formatter().format(properties);
expect(tree).to.deep.equal({
"w:pPr": [
{
"w:wordWrap": {
_attr: {
"w:val": 0,
},
},
},
],
});
});
});
});