#750 Add widow control
This commit is contained in:
19
src/file/paragraph/formatting/alignment.spec.ts
Normal file
19
src/file/paragraph/formatting/alignment.spec.ts
Normal 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",
|
||||
},
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user