Skip to content

Commit 31e6630

Browse files
committed
test: testing custom class name
1 parent 2055ff3 commit 31e6630

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/ClientTable/ClientTable.spec.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@ const LAST_BUTTON_ID = 'last-page-button';
1111

1212
describe('ClientTable', () => {
1313
it('should render', () => {
14-
render(<ClientTable columns={[]} data={[]} minRows={10} noWrap={true} />);
14+
render(<ClientTable columns={[]} data={[]} minRows={10} />);
1515
expect(screen.getByTestId(TEST_ID)).toBeInTheDocument();
1616
expect(screen.getByTestId(FIRST_BUTTON_ID)).toBeInTheDocument();
1717
expect(screen.getByTestId(PREVIOUS_BUTTON_ID)).toBeInTheDocument();
1818
expect(screen.getByTestId(NEXT_BUTTON_ID)).toBeInTheDocument();
1919
expect(screen.getByTestId(LAST_BUTTON_ID)).toBeInTheDocument();
2020
});
21+
it('should contain a custom class name', () => {
22+
render(<ClientTable className="foo" columns={[]} data={[]} minRows={10} />);
23+
expect(screen.getByTestId(TEST_ID)).toHaveClass('foo');
24+
});
2125
});

0 commit comments

Comments
 (0)