File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/components/ClientTable Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,15 @@ const LAST_BUTTON_ID = 'last-page-button';
1111
1212describe ( '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} ) ;
You can’t perform that action at this time.
0 commit comments