Change to new header API

This commit is contained in:
Dolan
2018-10-05 01:33:17 +01:00
parent 3508fd97ec
commit 97f76fb62c
4 changed files with 215 additions and 100 deletions

View File

@ -1,7 +1,9 @@
import { expect } from "chai";
import { Formatter } from "../../../../export/formatter";
import { FooterReferenceType, HeaderReferenceType, PageBorderOffsetFrom, PageNumberFormat } from "./";
import { FooterWrapper } from "../../../footer-wrapper";
import { HeaderWrapper } from "../../../header-wrapper";
import { PageBorderOffsetFrom, PageNumberFormat } from "./";
import { SectionProperties } from "./section-properties";
describe("SectionProperties", () => {
@ -20,8 +22,12 @@ describe("SectionProperties", () => {
mirror: false,
space: 708,
linePitch: 360,
headers: [{ headerId: 100, headerType: HeaderReferenceType.DEFAULT }],
footers: [{ footerId: 200, footerType: FooterReferenceType.EVEN }],
headers: {
default: new HeaderWrapper(100),
},
footers: {
even: new FooterWrapper(200),
},
pageNumberStart: 10,
pageNumberFormatType: PageNumberFormat.CARDINAL_TEXT,
});