File tree 1 file changed +12
-6
lines changed
plugins/wazuh-fleet/public/components/common/data-grid 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -144,9 +144,12 @@ describe('useDataGrid hook', () => {
144
144
145
145
it ( 'should reset to page 0 when results change' , ( ) => {
146
146
const props = createBaseProps ( ) ;
147
- const { result, rerender } = renderHook ( props => useDataGrid ( props ) , {
148
- initialProps : props ,
149
- } ) ;
147
+ const { result, rerender } = renderHook (
148
+ ( props : DataGridProps ) => useDataGrid ( props ) ,
149
+ {
150
+ initialProps : props ,
151
+ } ,
152
+ ) ;
150
153
151
154
// Go to page 2
152
155
act ( ( ) => {
@@ -225,9 +228,12 @@ describe('useDataGrid hook', () => {
225
228
const props = createBaseProps ( {
226
229
results : createMockSearchResponse ( 5 , 5 ) ,
227
230
} ) ;
228
- const { result, rerender } = renderHook ( props => useDataGrid ( props ) , {
229
- initialProps : props ,
230
- } ) ;
231
+ const { result, rerender } = renderHook (
232
+ ( props : DataGridProps ) => useDataGrid ( props ) ,
233
+ {
234
+ initialProps : props ,
235
+ } ,
236
+ ) ;
231
237
232
238
expect ( result . current . rowCount ) . toBe ( 5 ) ;
233
239
You can’t perform that action at this time.
0 commit comments