Skip to content

Commit

Permalink
migrated pagination.spec.tsx from jest to vitest (#2949)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aad1tya27 authored Dec 26, 2024
1 parent 5b3e840 commit f017c5d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { createTheme, ThemeProvider } from '@mui/material/styles';
import Pagination from './Pagination';
import { store } from 'state/store';
import userEvent from '@testing-library/user-event';
import { describe, it } from 'vitest';

describe('Testing Pagination component', () => {
const props = {
Expand All @@ -17,7 +18,7 @@ describe('Testing Pagination component', () => {
},
};

test('Component should be rendered properly on rtl', async () => {
it('Component should be rendered properly on rtl', async () => {
render(
<BrowserRouter>
<Provider store={store}>
Expand All @@ -42,7 +43,7 @@ const props = {
theme: { direction: 'rtl' },
};

test('Component should be rendered properly', async () => {
it('Component should be rendered properly', async () => {
const theme = createTheme({
direction: 'rtl',
});
Expand Down

0 comments on commit f017c5d

Please sign in to comment.