Make .addSection fully declarative

This commit is contained in:
Dolan
2021-03-19 20:53:56 +00:00
parent 4783812044
commit 3299c557a0
86 changed files with 3341 additions and 3278 deletions

View File

@ -14,8 +14,12 @@ describe("Body", () => {
describe("#addSection", () => {
it("should add section with default parameters", () => {
body.addSection({
width: 10000,
height: 10000,
page: {
size: {
width: 10000,
height: 10000,
},
},
});
const tree = new Formatter().format(body);