improve test coverage

This commit is contained in:
Tom Hunkapiller
2021-05-26 10:14:19 +03:00
parent 5a52541136
commit 05a6ab77cc
7 changed files with 182 additions and 20 deletions

View File

@ -1,6 +1,6 @@
import { IContext, IXmlableObject, XmlComponent } from "file/xml-components";
import { Paragraph, ParagraphProperties, TableOfContents } from "../..";
import { Paragraph, ParagraphProperties } from "../..";
import { ISectionPropertiesOptions, SectionProperties } from "./section-properties/section-properties";
export class Body extends XmlComponent {
@ -38,10 +38,6 @@ export class Body extends XmlComponent {
this.root.push(component);
}
public getTablesOfContents(): TableOfContents[] {
return this.root.filter((child) => child instanceof TableOfContents) as TableOfContents[];
}
private createSectionParagraph(section: SectionProperties): Paragraph {
const paragraph = new Paragraph({});
const properties = new ParagraphProperties({});