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 { public thematicBreak(): Paragraph {
this.root.push(new ThematicBreak()); this.properties.push(new ThematicBreak());
return this; return this;
} }

View File

@ -144,13 +144,11 @@ describe("Paragraph", () => {
const tree = new Formatter().format(paragraph); const tree = new Formatter().format(paragraph);
expect(tree).to.deep.equal({ expect(tree).to.deep.equal({
"w:p": [{ "w:p": [{
"w:pPr": [{
"w:r": [ "w:r": [
{"w:rPr": []}, {"w:rPr": []},
{"w:br": [{_attr: {"w:type": "page"}}]}, {"w:br": [{_attr: {"w:type": "page"}}]},
], ],
}], }],
}],
}); });
}); });
}); });