Improve tests
This commit is contained in:
@ -72,18 +72,18 @@ export class PageBorders extends IgnoreIfEmptyXmlComponent {
|
||||
return;
|
||||
}
|
||||
|
||||
let pageBordersAttributes = {};
|
||||
|
||||
if (options.pageBorders) {
|
||||
pageBordersAttributes = {
|
||||
display: options.pageBorders.display,
|
||||
offsetFrom: options.pageBorders.offsetFrom,
|
||||
zOrder: options.pageBorders.zOrder,
|
||||
};
|
||||
this.root.push(
|
||||
new PageBordersAttributes({
|
||||
display: options.pageBorders.display,
|
||||
offsetFrom: options.pageBorders.offsetFrom,
|
||||
zOrder: options.pageBorders.zOrder,
|
||||
}),
|
||||
);
|
||||
} else {
|
||||
this.root.push(new PageBordersAttributes({}));
|
||||
}
|
||||
|
||||
this.root.push(new PageBordersAttributes(pageBordersAttributes));
|
||||
|
||||
if (options.pageBorderTop) {
|
||||
this.root.push(new PageBorder("w:top", options.pageBorderTop));
|
||||
}
|
||||
|
Reference in New Issue
Block a user