diff --git a/src/file/paragraph/paragraph.spec.ts b/src/file/paragraph/paragraph.spec.ts index dd64f1fed2..a2176f3ecf 100644 --- a/src/file/paragraph/paragraph.spec.ts +++ b/src/file/paragraph/paragraph.spec.ts @@ -338,4 +338,14 @@ describe("Paragraph", () => { }); }); }); + + describe("#bidi", () => { + it("set paragraph right to left layout", () => { + paragraph.bidi(); + const tree = new Formatter().format(paragraph); + expect(tree).to.deep.equal({ + "w:p": [{ "w:pPr": [{ "w:bidi": [] }] }], + }); + }); + }); });