Skip to content

Commit 789e813

Browse files
committed
Merge branch 'enhancement/517-create-agent-management-apps' of https://github.com/wazuh/wazuh-dashboard-plugins into enhancement/517-create-agent-management-apps
2 parents 227b98c + c18f912 commit 789e813

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

plugins/wazuh-fleet/public/components/common/data-grid/use-data-grid.test.tsx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,12 @@ describe('useDataGrid hook', () => {
144144

145145
it('should reset to page 0 when results change', () => {
146146
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+
);
150153

151154
// Go to page 2
152155
act(() => {
@@ -225,9 +228,12 @@ describe('useDataGrid hook', () => {
225228
const props = createBaseProps({
226229
results: createMockSearchResponse(5, 5),
227230
});
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+
);
231237

232238
expect(result.current.rowCount).toBe(5);
233239

0 commit comments

Comments
 (0)