diff --git a/client/app/features/profile/components/AvatarForm.spec.tsx b/client/app/features/profile/components/AvatarForm.spec.tsx
index 77e6b004..046c00ee 100644
--- a/client/app/features/profile/components/AvatarForm.spec.tsx
+++ b/client/app/features/profile/components/AvatarForm.spec.tsx
@@ -1,10 +1,11 @@
-import { render, screen } from '@testing-library/react';
+import { screen } from '@testing-library/react';
import { describe, expect, it } from 'vitest';
+import { renderWithProviders } from '~/mocks';
import { AvatarForm } from './AvatarForm';
describe('AvatarForm Component', () => {
it('avatar image is a button', () => {
- render();
+ renderWithProviders();
expect(screen.getByRole('button')).toBeInTheDocument();
});
});
diff --git a/client/app/features/profile/components/AvatarForm.tsx b/client/app/features/profile/components/AvatarForm.tsx
index bb73ff06..663f8c78 100644
--- a/client/app/features/profile/components/AvatarForm.tsx
+++ b/client/app/features/profile/components/AvatarForm.tsx
@@ -19,7 +19,6 @@ export function AvatarForm({ avatar }: AvatarFormProps) {
const onSubmit = (data: any) => {
const formData = new FormData();
formData.append('avatar', data.avatar[0]);
- console.log('data ', formData);
htApi
.patch(`/profile/${user?.id}`, formData, {
headers: { 'Content-Type': 'multipart/form-data' },