From d17f6e4781ade0808921931aef094d6adf274849 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CAnton?= <“alantukh@“jwplayer.com> Date: Mon, 18 Jul 2022 19:32:12 +0200 Subject: [PATCH] fix(project): assets object not required anymore --- package.json | 2 +- src/components/Header/Header.test.tsx | 4 ++++ src/components/Header/Header.tsx | 2 +- .../Header/__snapshots__/Header.test.tsx.snap | 4 +++- .../Layout/__snapshots__/Layout.test.tsx.snap | 12 +++++++++++- src/services/config.service.ts | 2 +- 6 files changed, 21 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 83052a43e..2b559bc3d 100644 --- a/package.json +++ b/package.json @@ -127,4 +127,4 @@ "glob-parent": "^5.1.2", "codeceptjs/**/ansi-regex": "^4.1.1" } -} \ No newline at end of file +} diff --git a/src/components/Header/Header.test.tsx b/src/components/Header/Header.test.tsx index 3c601c7aa..802672237 100644 --- a/src/components/Header/Header.test.tsx +++ b/src/components/Header/Header.test.tsx @@ -5,6 +5,10 @@ import Button from '../Button/Button'; import Header from './Header'; +vi.mock('react-router-dom', () => ({ + NavLink: () => 'a', +})); + describe('
', () => { test('renders header', () => { const playlistMenuItems = [