From 78d5bf129ae178c8bd8014cdb735e33f8b3e1e1e Mon Sep 17 00:00:00 2001 From: Athou Date: Tue, 9 Jul 2024 03:42:38 +0200 Subject: [PATCH] fix build --- commafeed-client/src/app/entries/entries.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commafeed-client/src/app/entries/entries.test.ts b/commafeed-client/src/app/entries/entries.test.ts index 3ccf4515..0804e024 100644 --- a/commafeed-client/src/app/entries/entries.test.ts +++ b/commafeed-client/src/app/entries/entries.test.ts @@ -5,7 +5,7 @@ import { type RootState, reducers } from "app/store" import type { Entries, Entry } from "app/types" import type { AxiosResponse } from "axios" import { beforeEach, describe, expect, it, vi } from "vitest" -import { mockReset } from "vitest-mock-extended" +import { any, mockReset } from "vitest-mock-extended" const mockClient = await vi.hoisted(async () => { const mockModule = await import("vitest-mock-extended") @@ -19,7 +19,7 @@ describe("entries", () => { }) it("loads entries", async () => { - mockClient.feed.getEntries.mockResolvedValue({ + mockClient.feed.getEntries.calledWith(any()).mockResolvedValue({ data: { entries: [{ id: "3" } as Entry], hasMore: false, @@ -53,7 +53,7 @@ describe("entries", () => { }) it("loads more entries", async () => { - mockClient.category.getEntries.mockResolvedValue({ + mockClient.category.getEntries.calledWith(any()).mockResolvedValue({ data: { entries: [{ id: "4" } as Entry], hasMore: false,