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

@ -7,6 +7,7 @@ import { ISectionOptions } from "../file";
import { INumberingOptions } from "../numbering";
import { Paragraph } from "../paragraph";
import { IStylesOptions } from "../styles";
import { dateTimeValue } from "../values";
export interface IPropertiesOptions {
readonly sections: ISectionOptions[];
@ -103,6 +104,6 @@ class TimestampElement extends XmlComponent {
type: "dcterms:W3CDTF",
}),
);
this.root.push(new Date().toISOString());
this.root.push(dateTimeValue(new Date()));
}
}