From fc7a6e98268d34f313d79c817e38c09ad6cde960 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Thu, 2 Jun 2022 23:51:43 +0200
Subject: test(unit): fix Jest errors due to images import

I mocked some SVG files and moves the branding photo to public
directory. It is more a workaround than a real fix but it works so...
---
 src/components/organisms/widgets/social-media.test.tsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/components/organisms/widgets/social-media.test.tsx')

diff --git a/src/components/organisms/widgets/social-media.test.tsx b/src/components/organisms/widgets/social-media.test.tsx
index 45e4a8a..ec6c536 100644
--- a/src/components/organisms/widgets/social-media.test.tsx
+++ b/src/components/organisms/widgets/social-media.test.tsx
@@ -13,7 +13,9 @@ const titleLevel = 2;
  * the svg files manually.
  */
 jest.mock('@assets/images/social-media/github.svg', () => 'svg-file');
+jest.mock('@assets/images/social-media/gitlab.svg', () => 'svg-file');
 jest.mock('@assets/images/social-media/linkedin.svg', () => 'svg-file');
+jest.mock('@assets/images/social-media/twitter.svg', () => 'svg-file');
 
 describe('SocialMedia', () => {
   it('renders the widget title', () => {
-- 
cgit v1.2.3

