Just pagebreak, update test
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -144,12 +144,10 @@ 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"}}]},
|
],
|
||||||
],
|
|
||||||
}],
|
|
||||||
}],
|
}],
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user