@wonderflow/react-components
Version:
UI components from Wonderflow's Wanda design system
14 lines (13 loc) • 652 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { render } from '@testing-library/react';
import { TablePagination } from './table-pagination';
describe('<TablePagination>', () => {
test('it should render properly', () => {
const { container } = render(_jsx(TablePagination, { pageSize: 5, totalItems: 10, totalPages: 2, currentPage: 1 }));
expect(container).not.toBeNull();
});
test('it should render properly', () => {
const { container } = render(_jsx(TablePagination, { pageSize: 5, totalItems: 10, totalPages: 2, currentPage: 1, isManual: true }));
expect(container).not.toBeNull();
});
});