Skip to content

Commit

Permalink
chore: use vi in src/flexibleChecksumsInputMiddleware.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Nov 12, 2024
1 parent d81266b commit 40a8f9e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { afterEach, describe, expect, test as it, vi } from "vitest";

import { PreviouslyResolved } from "./configuration";
import { ResponseChecksumValidation } from "./constants";
import { flexibleChecksumsInputMiddleware } from "./flexibleChecksumsInputMiddleware";

describe(flexibleChecksumsInputMiddleware.name, () => {
const mockNext = jest.fn();
const mockNext = vi.fn();
const mockMiddlewareConfig = {
requestValidationModeMember: "requestValidationModeMember",
};
Expand All @@ -13,7 +15,7 @@ describe(flexibleChecksumsInputMiddleware.name, () => {

afterEach(() => {
expect(mockNext).toHaveBeenCalledTimes(1);
jest.clearAllMocks();
vi.clearAllMocks();
});

describe("sets input.requestValidationModeMember", () => {
Expand Down

0 comments on commit 40a8f9e

Please sign in to comment.