Add some tests to boost coverage

This commit is contained in:
Dolan Miu
2023-03-21 04:30:20 +00:00
parent 11c3886659
commit 7785f0df02
2 changed files with 54 additions and 11 deletions

View File

@ -71,8 +71,8 @@ export const patchDocument = async (data: InputDataType, options: PatchDocumentO
const binaryContentMap = new Map<string, Buffer>();
for (const [key, value] of Object.entries(zipContent.files)) {
if (!key.endsWith('.xml') && !key.endsWith('.rels')) {
binaryContentMap.set(key, await value.async("nodebuffer"))
if (!key.endsWith(".xml") && !key.endsWith(".rels")) {
binaryContentMap.set(key, await value.async("nodebuffer"));
continue;
}