Add tests for suppressLineNumbers

This commit is contained in:
Matt Powell
2021-09-28 12:21:51 -07:00
parent ea01ddb337
commit f77ddb4037
2 changed files with 49 additions and 0 deletions

View File

@ -830,6 +830,18 @@ describe("Paragraph", () => {
});
});
describe("#suppressLineNumbers", () => {
it("should disable line numbers", () => {
const paragraph = new Paragraph({
suppressLineNumbers: true,
});
const tree = new Formatter().format(paragraph);
expect(tree).to.deep.equal({
"w:p": [{ "w:pPr": [{ "w:suppressLineNumbers": EMPTY_OBJECT }] }],
});
});
});
describe("#outlineLevel", () => {
it("should set paragraph outline level to the given value", () => {
const paragraph = new Paragraph({