renamed page break to thematic break
This commit is contained in:
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
@ -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);
|
||||||
|
Reference in New Issue
Block a user