Add tests

This commit is contained in:
Dolan
2021-03-08 04:18:26 +00:00
parent 2d4a452d2e
commit a0d8911e18
2 changed files with 152 additions and 0 deletions

View File

@ -618,6 +618,28 @@ describe("Paragraph", () => {
],
});
});
it("should not add ListParagraph style when custom is true", () => {
const paragraph = new Paragraph({
numbering: {
reference: "test id",
level: 0,
custom: true,
},
});
const tree = new Formatter().format(paragraph);
expect(tree).to.deep.equal({
"w:p": [
{
"w:pPr": [
{
"w:numPr": [{ "w:ilvl": { _attr: { "w:val": 0 } } }, { "w:numId": { _attr: { "w:val": "{test id}" } } }],
},
],
},
],
});
});
});
it("it should add bookmark", () => {