{t('[Description] why')}
diff --git a/apps/envited.ascs.digital/modules/HeroHeader/HeroHeader.ui.test.tsx b/apps/envited.ascs.digital/modules/HeroHeader/HeroHeader.ui.test.tsx index 020a5333..a82b69ac 100644 --- a/apps/envited.ascs.digital/modules/HeroHeader/HeroHeader.ui.test.tsx +++ b/apps/envited.ascs.digital/modules/HeroHeader/HeroHeader.ui.test.tsx @@ -16,6 +16,12 @@ jest.mock('next/navigation', () => ({ }, })) +jest.mock('next/navigation', () => ({ + useSearchParams: () => ({ + has: jest.fn(), + }), +})) + describe('modules/HeroHeader', () => { describe('render', () => { it('should return as expected', async () => { diff --git a/apps/envited.ascs.digital/modules/ThemeToggle/ThemeToggle.ui.test.tsx b/apps/envited.ascs.digital/modules/ThemeToggle/ThemeToggle.ui.test.tsx index f59d6b14..1b42d5f5 100644 --- a/apps/envited.ascs.digital/modules/ThemeToggle/ThemeToggle.ui.test.tsx +++ b/apps/envited.ascs.digital/modules/ThemeToggle/ThemeToggle.ui.test.tsx @@ -1,5 +1,6 @@ +import '@testing-library/jest-dom' +import { render } from '@testing-library/react' import React from 'react' -import TestRenderer from 'react-test-renderer' import ThemeToggle from './ThemeToggle' @@ -7,11 +8,10 @@ describe('modules/ThemeToggle', () => { describe('render', () => { it('should render as expected', async () => { // when ... rendering component - const component = TestRenderer.create(