DLNA renderers, app updates told like Librarian, acquisition without Lidarr, Collection and admin rework (M502–M505, M542) #156
@@ -51,10 +51,10 @@ function download(id: string, extra: Partial<Download> = {}): Download {
|
||||
afterEach(() => vi.clearAllMocks());
|
||||
|
||||
function setup(items: Download[], clientsDown: ClientDown[] = []) {
|
||||
// The Activity page carries the clients not answering beside its items.
|
||||
const page = { items, total: items.length, limit: 50, offset: 0, clients_down: clientsDown };
|
||||
vi.mocked(createDownloadsQuery).mockReturnValue(
|
||||
mockInfiniteQuery({
|
||||
pages: [{ items, total: items.length, limit: 50, offset: 0, clients_down: clientsDown }]
|
||||
}) as unknown as ReturnType<
|
||||
mockInfiniteQuery({ pages: [page] }) as unknown as ReturnType<
|
||||
typeof createDownloadsQuery
|
||||
>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user