Files
docx-js/src/file/paragraph/formatting/alignment.spec.ts

21 lines
512 B
TypeScript
Raw Normal View History

2023-06-05 00:33:43 +01:00
import { describe, expect, it } from "vitest";
2021-03-13 04:07:44 +00:00
import { Formatter } from "@export/formatter";
2021-03-13 04:07:44 +00:00
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",
},
},
});
});
});