Skip to content

Commit

Permalink
fix: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samwel141 committed May 12, 2024
1 parent 5541f6c commit 6e06be8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Routes/ClientRoutes.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { render, screen } from '@testing-library/react';
import { ThemeProvider } from '@mui/material';
import theme from '../UI/theme';
import AuthContext from '../../store/auth-context';
import { TrustRelationshipsProvider } from '../../store/TrustRelationshipsContext';

jest.mock('react-secure-storage', () => {
return {
Expand All @@ -24,7 +25,9 @@ describe('ClientRoutes component', () => {
<ThemeProvider theme={theme}>
<Router>
<AuthContext.Provider value={testContext}>
<TrustRelationshipsProvider>
{props.children}
</TrustRelationshipsProvider>
</AuthContext.Provider>
</Router>
</ThemeProvider>
Expand Down

0 comments on commit 6e06be8

Please sign in to comment.