Skip to content

Commit b8479fc

Browse files
committed
✅ Update test to only check for if the function has been called
1 parent f6b2256 commit b8479fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/molecules/Tabs/Tabs.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,5 +198,5 @@ test('Hovering over a tab calls the onHover callback', async () => {
198198

199199
await user.hover(screen.getByRole('tab', { name: options[0].label }));
200200

201-
expect(props.onHover).toHaveBeenCalledExactlyOnceWith(options[0].value);
201+
expect(props.onHover).toHaveBeenCalled();
202202
});

0 commit comments

Comments
 (0)