Just pagebreak, update test
This commit is contained in:
@ -98,7 +98,7 @@ export class Paragraph extends XmlComponent {
|
||||
}
|
||||
|
||||
public thematicBreak(): Paragraph {
|
||||
this.root.push(new ThematicBreak());
|
||||
this.properties.push(new ThematicBreak());
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -144,13 +144,11 @@ describe("Paragraph", () => {
|
||||
const tree = new Formatter().format(paragraph);
|
||||
expect(tree).to.deep.equal({
|
||||
"w:p": [{
|
||||
"w:pPr": [{
|
||||
"w:r": [
|
||||
{"w:rPr": []},
|
||||
{"w:br": [{_attr: {"w:type": "page"}}]},
|
||||
],
|
||||
}],
|
||||
}],
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user