Porting tests over to vitest

This commit is contained in:
Dolan Miu
2023-06-05 00:33:43 +01:00
parent a89919397d
commit e69b063687
256 changed files with 1557 additions and 612 deletions

View File

@ -1,5 +1,5 @@
// Patch a document with patches
// Import from 'docx' rather than '../build' if you install from npm
import * as fs from "fs";
import {
ExternalHyperlink,
@ -14,7 +14,7 @@ import {
TextDirection,
TextRun,
VerticalAlign,
} from "../build";
} from "docx";
patchDocument(fs.readFileSync("demo/assets/simple-template.docx"), {
patches: {