Chore: Update vitest (#2882)

* Chore: Update vitest

* Fix test
This commit is contained in:
Dolan
2024-12-05 15:43:30 +00:00
committed by GitHub
parent f87ad6a43c
commit df99f96469
4 changed files with 679 additions and 1144 deletions

View File

@ -3,7 +3,6 @@ import { describe, expect, it, vi } from "vitest";
import { IViewWrapper } from "@file/document-wrapper";
import { File } from "@file/file";
import { Paragraph, TextRun } from "@file/paragraph";
import { IContext } from "@file/xml-components";
import { PatchType } from "./from-docx";
import { replacer } from "./replacer";
@ -87,8 +86,7 @@ describe("replacer", () => {
children: [],
},
patchText: "hello",
// eslint-disable-next-line functional/prefer-readonly-type
context: vi.fn<[], IContext>()(),
context: vi.fn()(),
});
expect(didFindOccurrence).toBe(false);
});