mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-04 23:16:37 +08:00
fix
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
||||
} from '@testing-library/react';
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
||||
|
||||
import CloudflareGroupDetailPage from '@/app/(main)/cloudflare/groups/[id]/page';
|
||||
import { CloudflareGroupDetailPageClient } from '@/app/(main)/cloudflare/groups/[id]/page-client';
|
||||
import { CloudflareService, NodeService } from '@/lib/services/openflare';
|
||||
|
||||
vi.mock('next/navigation', () => ({
|
||||
@@ -40,7 +40,7 @@ function renderPage() {
|
||||
});
|
||||
render(
|
||||
<QueryClientProvider client={client}>
|
||||
<CloudflareGroupDetailPage />
|
||||
<CloudflareGroupDetailPageClient />
|
||||
</QueryClientProvider>,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ describe('Cloudflare sync tasks panel', () => {
|
||||
|
||||
it('queries only sync_member and sync_group and hides other tasks', async () => {
|
||||
vi.mocked(AdminTaskService.listTaskExecutions).mockImplementation(
|
||||
async (request) => {
|
||||
async (request = {}) => {
|
||||
if (request.task_type === 'cloudflare:sync_member') {
|
||||
return {
|
||||
items: [
|
||||
|
||||
Reference in New Issue
Block a user