Skip to content

Commit 1ea3b1e

Browse files
committed
Update unit test mock return type
1 parent 840e2f7 commit 1ea3b1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/components/grid/Grid.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ describe("Grid", () => {
168168
/>
169169
);
170170

171-
const NewCellComponent = vi.fn(() => null);
171+
const NewCellComponent = vi.fn(() => <div />);
172172

173173
rerender(
174174
<Grid

lib/components/list/List.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ describe("List", () => {
181181
/>
182182
);
183183

184-
const NewRowComponent = vi.fn(() => null);
184+
const NewRowComponent = vi.fn(() => <div />);
185185

186186
rerender(
187187
<List

0 commit comments

Comments
 (0)