#1949 - Add auto space DN feature

This commit is contained in:
Dolan Miu
2023-03-17 02:20:51 +00:00
parent 91e8295648
commit 970450074d
2 changed files with 24 additions and 0 deletions

View File

@ -125,6 +125,21 @@ describe("ParagraphProperties", () => {
});
});
it("should create with the autoSpaceEastAsianText property", () => {
const properties = new ParagraphProperties({
autoSpaceEastAsianText: true,
});
const tree = new Formatter().format(properties);
expect(tree).to.deep.equal({
"w:pPr": [
{
"w:autoSpaceDN": {},
},
],
});
});
it("should create with the wordWrap property", () => {
const properties = new ParagraphProperties({
wordWrap: true,