Skip to content

Commit

Permalink
chore: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanVor committed May 22, 2024
1 parent 3603201 commit d235005
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/components/Pagination/__tests__/Pagination.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';

import {noop} from 'lodash';

import {render, screen} from '../../../../test-utils/utils';
import {Pagination} from '../Pagination';
import {PaginationQa} from '../constants';

describe('Pagination', () => {
test('Total property disable Next', () => {
render(<Pagination pageSize={20} onUpdate={noop} page={0} total={undefined} />);

const nextButton = screen.getByTestId(PaginationQa.PaginationButtonNext);

expect(nextButton).toBeDisabled();
});
});

0 comments on commit d235005

Please sign in to comment.