paragraph: add support for page break before format property (#7)

This commit is contained in:
h4buli
2018-05-10 20:24:06 +02:00
committed by GitHub
parent 84e298e7ee
commit 15e8d7c053
4 changed files with 40 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import { assert } from "chai";
import { Utility } from "../../../tests/utility";
import { PageBreak } from "./page-break";
import { PageBreak, PageBreakBefore } from "./page-break";
describe("PageBreak", () => {
let pageBreak: PageBreak;
@ -30,3 +30,11 @@ describe("PageBreak", () => {
});
});
});
describe("PageBreakBefore", () => {
it("should create page break before", () => {
const pageBreakBefore = new PageBreakBefore();
const newJson = Utility.jsonify(pageBreakBefore);
assert.equal(newJson.rootKey, "w:pageBreakBefore");
});
});