Skip to content

Commit

Permalink
Fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Greenheart committed May 14, 2024
1 parent 756f491 commit 5c6bf83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions __tests__/components/CompanyView.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { render, screen, act } from '@testing-library/react'
import StartPage from '../../pages/index'
import StyledComponentsWrapper from '../utils/StyledComponentsWrapper'

vi.mock('../../public/icons/arrow-right-bold-green.svg', () => ({ default: () => 'svg' }))

vi.mock('next-i18next', () => ({
useTranslation: vi.fn(() => ({
t: (str: string) => str,
Expand Down
1 change: 1 addition & 0 deletions __tests__/components/RegionalView.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ vi.mock('../../public/icons/list.svg', () => ({ default: () => 'svg' }))
vi.mock('../../public/icons/map.svg', () => ({ default: () => 'svg' }))
vi.mock('../../public/icons/arrow.svg', () => ({ default: () => 'svg' }))
vi.mock('../../public/icons/arrow-down.svg', () => ({ default: () => 'svg' }))
vi.mock('../../public/icons/arrow-right-bold-green.svg', () => ({ default: () => 'svg' }))

vi.mock('next-i18next', () => ({
useTranslation: vi.fn(() => ({
Expand Down

0 comments on commit 5c6bf83

Please sign in to comment.