Just pagebreak, update test

This commit is contained in:
Jacob Wright
2017-09-15 08:37:57 -06:00
parent e57fd8fc57
commit 67ea7c95de
2 changed files with 5 additions and 7 deletions

View File

@ -98,7 +98,7 @@ export class Paragraph extends XmlComponent {
}
public thematicBreak(): Paragraph {
this.root.push(new ThematicBreak());
this.properties.push(new ThematicBreak());
return this;
}

View File

@ -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"}}]},
],
}],
}],
});
});
});