#751 Add bidi visual - Visual Right to Left

This commit is contained in:
Dolan Miu
2021-03-04 02:02:28 +00:00
parent a026e5bd1f
commit 2aa93e6105
8 changed files with 92 additions and 5 deletions

View File

@ -141,4 +141,20 @@ describe("TableProperties", () => {
});
});
});
describe("#Set Virtual Right to Left", () => {
it("sets the alignment of the table", () => {
const tp = new TableProperties({
visuallyRightToLeft: true,
});
const tree = new Formatter().format(tp);
expect(tree).to.deep.equal({
"w:tblPr": [
{
"w:bidiVisual": {},
},
],
});
});
});
});