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