* Documentation and Refactoring * Documentation and Refactoring * Fix lint issues * Convert components to Builder style --------- Co-authored-by: Dolan Miu <dmiu@bloomberg.net>
18 lines
546 B
TypeScript
18 lines
546 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
|
|
import { Formatter } from "@export/formatter";
|
|
import { VerticalPositionAlign } from "@file/shared/alignment";
|
|
|
|
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));
|
|
expect(tree).to.deep.equal({
|
|
"wp:align": ["center"],
|
|
});
|
|
});
|
|
});
|
|
});
|