added run

This commit is contained in:
Dolan Miu
2016-03-30 03:50:53 +01:00
parent b749e42671
commit a0acb6d1a6
9 changed files with 48 additions and 23 deletions

View File

@ -90,13 +90,13 @@ describe('Paragraph', () => {
it("should add page break to JSON", () => {
paragraph.pageBreak();
var newJson = jsonify(paragraph);
assert.isDefined(newJson.p[1].pPr[1].r[0].br);
assert.isDefined(newJson.p[1].pPr[1].r[1].br);
});
it("should add page break with 'page' type", () => {
paragraph.pageBreak();
var newJson = jsonify(paragraph);
assert(newJson.p[1].pPr[1].r[0].br[0]._attrs.type === "page");
assert(newJson.p[1].pPr[1].r[1].br[0]._attrs.type === "page");
});
});