From e5a6d93b1852dfbb76a36ff3c111f22e137ec376 Mon Sep 17 00:00:00 2001 From: Hugo ChunHo Lin Date: Sun, 6 Oct 2024 18:26:04 +0800 Subject: [PATCH] test(unit tests): update config imported path --- apps/web/src/tests/social-list.test.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/web/src/tests/social-list.test.tsx b/apps/web/src/tests/social-list.test.tsx index eabf2707..d4497688 100644 --- a/apps/web/src/tests/social-list.test.tsx +++ b/apps/web/src/tests/social-list.test.tsx @@ -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', () => { @@ -12,7 +16,7 @@ describe('SocialList', () => { it('should render the correct social links', () => { render(); - const { socialMedia } = abouts; + const { socialMedia } = about; const { githubUsername, twitterUsername, linkedinUsername, mediumUsername } = socialMedia; expect(screen.getByRole('link', { name: 'GitHub' })).toHaveAttribute('href', `https://github.com/${githubUsername}`);