@@ -707,7 +707,7 @@ describe('<MUIDataTable />', function() {
707707 } ;
708708 const fullWrapper = mount ( < MUIDataTable columns = { columns } data = { data } options = { options } /> ) ;
709709
710- const clickSortButton = ( index ) => {
710+ const clickSortButton = index => {
711711 const btn = fullWrapper . find ( `[data-testid="headcol-${ index } "]` ) . at ( 0 ) ;
712712 btn . prop ( 'onClick' ) ( { preventDefault : ( ) => { } } ) ;
713713 fullWrapper . update ( ) ;
@@ -736,7 +736,7 @@ describe('<MUIDataTable />', function() {
736736 } ;
737737 const fullWrapper = mount ( < MUIDataTable columns = { columns } data = { data } options = { options } /> ) ;
738738
739- const clickPaginationButton = ( id ) => {
739+ const clickPaginationButton = id => {
740740 const btn = fullWrapper . find ( id ) . at ( 0 ) ;
741741 if ( btn . prop ( 'onClick' ) ) {
742742 btn . prop ( 'onClick' ) ( { preventDefault : ( ) => { } } ) ;
@@ -1975,9 +1975,11 @@ describe('<MUIDataTable />', function() {
19751975 expandableRowsOnClick : true ,
19761976 onRowExpansionChange : spy ( ) ,
19771977 } ;
1978- const shallowWrapper = shallow ( < MUIDataTable columns = { columns } data = { data } options = { options } tableId = { tableId } /> ) . dive ( ) ;
1978+ const shallowWrapper = shallow (
1979+ < MUIDataTable columns = { columns } data = { data } options = { options } tableId = { tableId } /> ,
1980+ ) . dive ( ) ;
19791981 const instance = shallowWrapper . instance ( ) ;
1980-
1982+
19811983 // Simulate row expansion via the toggle method
19821984 instance . toggleExpandRow ( { index : 2 , dataIndex : 2 } ) ;
19831985 shallowWrapper . update ( ) ;
@@ -1999,9 +2001,11 @@ describe('<MUIDataTable />', function() {
19992001 selectableRowsOnClick : true ,
20002002 onRowSelectionChange : spy ( ) ,
20012003 } ;
2002- const shallowWrapper = shallow ( < MUIDataTable columns = { columns } data = { data } options = { options } tableId = { tableId } /> ) . dive ( ) ;
2004+ const shallowWrapper = shallow (
2005+ < MUIDataTable columns = { columns } data = { data } options = { options } tableId = { tableId } /> ,
2006+ ) . dive ( ) ;
20032007 const instance = shallowWrapper . instance ( ) ;
2004-
2008+
20052009 // Simulate row selection via selectRowUpdate
20062010 instance . selectRowUpdate ( 'cell' , { index : 2 , dataIndex : 2 } ) ;
20072011 shallowWrapper . update ( ) ;
@@ -2395,7 +2399,7 @@ describe('<MUIDataTable />', function() {
23952399
23962400 const shallowWrapper = shallow ( < MUIDataTable columns = { testColumns } data = { data } options = { options } /> ) . dive ( ) ;
23972401 const instance = shallowWrapper . instance ( ) ;
2398-
2402+
23992403 // Use the instance method to filter directly
24002404 instance . filterUpdate ( 0 , 'James' , 'Name' , 'textField' ) ;
24012405 shallowWrapper . update ( ) ;
0 commit comments