Files
docx-js/src/file/drawing/floating/align.spec.ts

18 lines
546 B
TypeScript
Raw Normal View History

2023-06-05 00:33:43 +01:00
import { describe, expect, it } from "vitest";
import { Formatter } from "@export/formatter";
import { VerticalPositionAlign } from "@file/shared/alignment";
2018-10-26 01:04:07 +01:00
import { createAlign } from "./align";
describe("Align", () => {
describe("#constructor()", () => {
it("should create a element with correct root key", () => {
const tree = new Formatter().format(createAlign(VerticalPositionAlign.CENTER));
2019-06-26 22:12:18 +01:00
expect(tree).to.deep.equal({
"wp:align": ["center"],
});
});
});
});