(app-desk) remove warning request not mocked

A request was not mocked in the test,
so the warning a warning was displayed.
This commit mocks the request to avoid the warning.
This commit is contained in:
Anthony LC
2024-03-27 11:39:49 +01:00
committed by Anthony LC
parent 91f755306b
commit 1c5499b2ab

View File

@@ -207,6 +207,8 @@ describe('MemberGrid', () => {
});
it('cannot add members when current role is member', () => {
fetchMock.get(`/api/teams/123456/accesses/?page=1`, 200);
render(<MemberGrid team={team} currentRole={Role.MEMBER} />, {
wrapper: AppWrapper,
});