Add tests

This commit is contained in:
Dolan
2018-12-16 01:56:42 +00:00
parent a1c21d2143
commit 0725e54271
4 changed files with 59 additions and 6 deletions

View File

@ -233,6 +233,7 @@ export class ImportDotx {
private titlePageIsDefined(xmlData: string): boolean {
const xmlObj = xml2js(xmlData, { compact: true }) as XMLElementCompact;
const sectionProp = xmlObj["w:document"]["w:body"]["w:sectPr"];
return sectionProp["w:titlePg"] !== undefined;
}