Files
docx-js/src/file/document/body/section-properties/properties/page-text-direction.spec.ts
Dolan Miu 982d923553 Improve import alias
@file/ and @export/ instead of file/ and export/ etc
2022-06-26 23:26:42 +01:00

23 lines
738 B
TypeScript

import { expect } from "chai";
import { Formatter } from "@export/formatter";
import { PageTextDirection, PageTextDirectionType } from "./page-text-direction";
describe("PageTextDirection", () => {
describe("#constructor()", () => {
it("should set the direction of the text flow to top-to-bottom-right-to-left", () => {
const textDirection = new PageTextDirection(PageTextDirectionType.TOP_TO_BOTTOM_RIGHT_TO_LEFT);
const tree = new Formatter().format(textDirection);
expect(tree).to.deep.equal({
"w:textDirection": {
_attr: {
"w:val": "tbRl",
},
},
});
});
});
});