File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ jest.mock('./CreateRow', () => () => (
1111 </ tr >
1212) ) ;
1313
14- jest . mock ( './EditRow' , ( ) => ( {
14+ jest . mock ( './EditRow' , ( ) =>
15+ ( {
1516 initialValue,
1617 handleUpdateRow,
1718 cancelEditRow,
@@ -31,7 +32,8 @@ jest.mock('./EditRow', () => ({
3132 </ tr >
3233) ) ;
3334
34- jest . mock ( './NestedRows' , ( ) => ( {
35+ jest . mock ( './NestedRows' , ( ) =>
36+ ( {
3537 parentRowValue,
3638 isCreating,
3739 onSaveNewChildRow,
@@ -108,14 +110,15 @@ const makeRow = ({
108110 getVisibleCells : ( ) => [ makeCell ( `${ id } -cell` , `${ value } cell` ) ] ,
109111} ) ;
110112
111- const renderTableBody = ( contextValue = baseContextValue ( ) ) => render (
112- < TreeTableContext . Provider value = { contextValue as any } >
113- < table >
114- < TableBody />
115- </ table >
116- </ TreeTableContext . Provider > ,
117- { wrapper } ,
118- ) ;
113+ const renderTableBody = ( contextValue = baseContextValue ( ) ) =>
114+ render (
115+ < TreeTableContext . Provider value = { contextValue as any } >
116+ < table >
117+ < TableBody />
118+ </ table >
119+ </ TreeTableContext . Provider > ,
120+ { wrapper } ,
121+ ) ;
119122
120123describe ( 'TableBody' , ( ) => {
121124 it ( 'returns null when no table instance is available in context' , ( ) => {
You can’t perform that action at this time.
0 commit comments