Files
docx-js/src/file/paragraph/formatting/alignment.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

20 lines
495 B
TypeScript

import { expect } from "chai";
import { Formatter } from "@export/formatter";
import { Alignment, AlignmentType } from "./alignment";
describe("Alignment", () => {
it("should create", () => {
const alignment = new Alignment(AlignmentType.BOTH);
const tree = new Formatter().format(alignment);
expect(tree).to.deep.equal({
"w:jc": {
_attr: {
"w:val": "both",
},
},
});
});
});