2019-06-26 22:12:18 +01:00
|
|
|
import { expect } from "chai";
|
2018-06-08 16:03:04 +02:00
|
|
|
|
2022-06-26 23:26:42 +01:00
|
|
|
import { Formatter } from "@export/formatter";
|
|
|
|
import { VerticalPositionAlign } from "@file/shared/alignment";
|
2018-10-26 01:04:07 +01:00
|
|
|
|
2018-06-09 23:49:01 +01:00
|
|
|
import { Align } from "./align";
|
2018-06-08 16:03:04 +02:00
|
|
|
|
|
|
|
describe("Align", () => {
|
|
|
|
describe("#constructor()", () => {
|
|
|
|
it("should create a element with correct root key", () => {
|
2019-06-26 22:12:18 +01:00
|
|
|
const tree = new Formatter().format(new Align(VerticalPositionAlign.CENTER));
|
|
|
|
expect(tree).to.deep.equal({
|
|
|
|
"wp:align": ["center"],
|
|
|
|
});
|
2018-06-08 16:03:04 +02:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|