Skip to content

Commit

Permalink
test(unit tests): update config imported path
Browse files Browse the repository at this point in the history
  • Loading branch information
1chooo committed Oct 6, 2024
1 parent 2e090b4 commit e5a6d93
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/web/src/tests/social-list.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import React from 'react';
import { render, screen } from '@testing-library/react';
import SocialList from '../components/side-bar/social-list';
import { abouts } from '../config/about';
import config from '@/config';

const { about } = config;



describe('SocialList', () => {
it('should render the correct number of social links', () => {
Expand All @@ -12,7 +16,7 @@ describe('SocialList', () => {

it('should render the correct social links', () => {
render(<SocialList />);
const { socialMedia } = abouts;
const { socialMedia } = about;
const { githubUsername, twitterUsername, linkedinUsername, mediumUsername } = socialMedia;

expect(screen.getByRole('link', { name: 'GitHub' })).toHaveAttribute('href', `https://github.com/${githubUsername}`);
Expand Down

0 comments on commit e5a6d93

Please sign in to comment.