Skip to content

Commit

Permalink
first draft of unit test for Userprofile
Browse files Browse the repository at this point in the history
  • Loading branch information
John Lee authored and John Lee committed Jan 4, 2024
1 parent 4587c73 commit 5edaa99
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions client/src/tests/Userprofile.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { render } from '@testing-library/react';
import React from 'react';

import Userprofile from '@/pages/Userprofile/UserProfile';

describe('UserProfile', () => {
it('renders UserProfile correctly', () => {
const userProfile = render(<Userprofile />);
expect(userProfile).toMatchSnapshot();
});
});

0 comments on commit 5edaa99

Please sign in to comment.