#750 Add widow control

This commit is contained in:
Dolan
2021-03-13 04:07:44 +00:00
parent 2391375ac0
commit 8724fbe7a7
6 changed files with 93 additions and 5 deletions

View File

@ -0,0 +1,19 @@
import { expect } from "chai";
import { Formatter } from "export/formatter";
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",
},
},
});
});
});