renamed page break to thematic break

This commit is contained in:
Dolan Miu
2016-03-29 23:36:57 +01:00
parent 7e91d7be4d
commit e04d9e0c97
2 changed files with 11 additions and 3 deletions

View File

@ -90,8 +90,16 @@ export class Paragraph {
return this; return this;
} }
pageBreak() { thematicBreak() {
this.properties.push(new ThematicBreak()); this.properties.push(new ThematicBreak());
return this; return this;
} }
pageBreak () {
this.properties.push(new ThematicBreak());
paragraphProperties.push(pBreak);
return this;
}
} }

View File

@ -77,9 +77,9 @@ describe('Paragraph', () => {
}); });
}); });
describe("#pageBreak()", () => { describe("#thematicBreak()", () => {
it("should add thematic break to JSON", () => { it("should add thematic break to JSON", () => {
paragraph.pageBreak(); paragraph.thematicBreak();
var newJson = jsonify(paragraph); var newJson = jsonify(paragraph);
assert.isDefined(newJson.p[1].pPr[1].pBdr); assert.isDefined(newJson.p[1].pPr[1].pBdr);