Fix tests and build

Remove unused code and dependencies
This commit is contained in:
Dolan Miu
2023-06-08 13:30:31 +01:00
parent a0a88412ff
commit 09ab91eeef
19 changed files with 22322 additions and 26082 deletions

View File

@ -2,8 +2,7 @@ import { IViewWrapper } from "@file/document-wrapper";
import { File } from "@file/file";
import { Paragraph, TextRun } from "@file/paragraph";
import { IContext } from "@file/xml-components";
import { describe, expect, it } from "vitest";
import * as sinon from "sinon";
import { describe, expect, it, vi } from "vitest";
import { PatchType } from "./from-docx";
@ -63,7 +62,8 @@ describe("replacer", () => {
},
"hello",
[],
sinon.mock() as unknown as IContext,
// eslint-disable-next-line functional/prefer-readonly-type
vi.fn<[], IContext>()(),
);
expect(output).to.deep.equal({