Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-bizz committed Jun 26, 2024
1 parent ae29a94 commit 7d58116
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/components/Tool/Appeal/NoAppeal.test.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
import React from 'react';
import { ThemeProvider } from '@mui/material/styles';
import { render } from '@testing-library/react';
import TestWrapper from '__tests__/util/TestWrapper';
import theme from 'src/theme';
import NoAppeals from './NoAppeals';

describe('NoAppeals', () => {
it('regular', () => {
const { queryByText } = render(
<TestWrapper>
<NoAppeals />
</TestWrapper>,
<ThemeProvider theme={theme}>
<TestWrapper>
<NoAppeals />
</TestWrapper>
</ThemeProvider>,
);
expect(queryByText('No Appeals have been setup yet.')).toBeInTheDocument();
expect(
Expand All @@ -18,9 +22,11 @@ describe('NoAppeals', () => {

it('primary', () => {
const { queryByText } = render(
<TestWrapper>
<NoAppeals primary />
</TestWrapper>,
<ThemeProvider theme={theme}>
<TestWrapper>
<NoAppeals primary />
</TestWrapper>
</ThemeProvider>,
);
expect(
queryByText('No Appeals have been setup yet.'),
Expand Down

0 comments on commit 7d58116

Please sign in to comment.