@@ -17,7 +17,7 @@ test('should render correctly with default props', () => {
1717 rowCount = { 40 }
1818 onChangePage = { jest . fn ( ) }
1919 onChangeRowsPerPage = { jest . fn ( ) }
20- theme = { { ...theme } }
20+ theme = { { ...theme ( ) } }
2121 />
2222 </ DataTableProvider > ,
2323 ) ;
@@ -36,7 +36,7 @@ describe('when clicking the First Page button', () => {
3636 rowCount = { 40 }
3737 onChangePage = { onChangePageMock }
3838 onChangeRowsPerPage = { jest . fn ( ) }
39- theme = { { ...theme } }
39+ theme = { { ...theme ( ) } }
4040 />
4141 </ DataTableProvider > ,
4242 ) ;
@@ -55,7 +55,7 @@ describe('when clicking the First Page button', () => {
5555 rowCount = { 40 }
5656 onChangePage = { onChangePageMock }
5757 onChangeRowsPerPage = { jest . fn ( ) }
58- theme = { { ...theme } }
58+ theme = { { ...theme ( ) } }
5959 />
6060 </ DataTableProvider > ,
6161 ) ;
@@ -76,7 +76,7 @@ describe('when clicking the Last Page button', () => {
7676 rowCount = { 40 }
7777 onChangePage = { onChangePageMock }
7878 onChangeRowsPerPage = { jest . fn ( ) }
79- theme = { { ...theme } }
79+ theme = { { ...theme ( ) } }
8080 />
8181 </ DataTableProvider > ,
8282 ) ;
@@ -95,7 +95,7 @@ describe('when clicking the Last Page button', () => {
9595 rowCount = { 40 }
9696 onChangePage = { onChangePageMock }
9797 onChangeRowsPerPage = { jest . fn ( ) }
98- theme = { { ...theme } }
98+ theme = { { ...theme ( ) } }
9999 />
100100 </ DataTableProvider > ,
101101 ) ;
@@ -116,7 +116,7 @@ describe('when clicking the Next Page button', () => {
116116 rowCount = { 40 }
117117 onChangePage = { onChangePageMock }
118118 onChangeRowsPerPage = { jest . fn ( ) }
119- theme = { { ...theme } }
119+ theme = { { ...theme ( ) } }
120120 />
121121 </ DataTableProvider > ,
122122 ) ;
@@ -135,7 +135,7 @@ describe('when clicking the Next Page button', () => {
135135 rowCount = { 40 }
136136 onChangePage = { onChangePageMock }
137137 onChangeRowsPerPage = { jest . fn ( ) }
138- theme = { { ...theme } }
138+ theme = { { ...theme ( ) } }
139139 />
140140 </ DataTableProvider > ,
141141 ) ;
@@ -156,7 +156,7 @@ describe('when clicking the Previous Page button', () => {
156156 rowCount = { 40 }
157157 onChangePage = { onChangePageMock }
158158 onChangeRowsPerPage = { jest . fn ( ) }
159- theme = { { ...theme } }
159+ theme = { { ...theme ( ) } }
160160 />
161161 </ DataTableProvider > ,
162162 ) ;
@@ -175,7 +175,7 @@ describe('when clicking the Previous Page button', () => {
175175 rowCount = { 40 }
176176 onChangePage = { onChangePageMock }
177177 onChangeRowsPerPage = { jest . fn ( ) }
178- theme = { { ...theme } }
178+ theme = { { ...theme ( ) } }
179179 />
180180 </ DataTableProvider > ,
181181 ) ;
@@ -197,7 +197,7 @@ describe('when there is no paging to be done', () => {
197197 rowCount = { 5 }
198198 onChangePage = { onChangePageMock }
199199 onChangeRowsPerPage = { jest . fn ( ) }
200- theme = { { ...theme } }
200+ theme = { { ...theme ( ) } }
201201 />
202202 </ DataTableProvider > ,
203203 ) ;
@@ -236,7 +236,7 @@ describe('when clicking the Previous Page button', () => {
236236 rowCount = { 40 }
237237 onChangePage = { onChangePageMock }
238238 onChangeRowsPerPage = { onChangeRowsPerPageMock }
239- theme = { { ...theme } }
239+ theme = { { ...theme ( ) } }
240240 />
241241 </ DataTableProvider > ,
242242 ) ;
0 commit comments