You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/setup-tests/setup-handlers/users.ts

13 lines
404 B

import { http, HttpResponse } from 'msw';
import { TeamMembership } from '@/react/portainer/users/teams/types';
import { createMockUsers } from '@/react-tools/test-mocks';
export const userHandlers = [
http.get('/api/users', async () => HttpResponse.json(createMockUsers(10))),
http.get<never, never, TeamMembership[]>(
'/api/users/:userId/memberships',
() => HttpResponse.json([])
),
];