fix: unit tests fix

This commit is contained in:
Lentyaev Pavel
2023-04-19 16:51:03 +03:00
parent c59c5350fd
commit 704c678333
10 changed files with 25 additions and 24 deletions

View File

@ -2,7 +2,7 @@
import { IContext, IXmlableObject, NextAttributeComponent, XmlComponent } from "@file/xml-components";
import { ConcreteHyperlink } from "@file/paragraph";
import { uniqueNumericIdCreator } from "@util/convenience-functions";
import { docPropertiesUniqueNumericId } from "@util/convenience-functions";
import { createHyperlinkClick } from "./doc-properties-children";
@ -24,8 +24,6 @@ export interface DocPropertiesOptions {
readonly title: string;
}
const uniqueNumericId = uniqueNumericIdCreator();
export class DocProperties extends XmlComponent {
public constructor({ name, description, title }: DocPropertiesOptions = { name: "", description: "", title: "" }) {
super("wp:docPr");
@ -34,7 +32,7 @@ export class DocProperties extends XmlComponent {
new NextAttributeComponent({
id: {
key: "id",
value: uniqueNumericId(),
value: docPropertiesUniqueNumericId(),
},
name: {
key: "name",